pull/4490/head
Tan Li Hau 6 years ago
parent 2b8a93d985
commit 634bad9970

@ -312,7 +312,7 @@ export default function mustache(parser: Parser) {
const await_block_catch_shorthand = !await_block_shorthand && type === 'AwaitBlock' && parser.eat('catch'); const await_block_catch_shorthand = !await_block_shorthand && type === 'AwaitBlock' && parser.eat('catch');
if (await_block_catch_shorthand) { if (await_block_catch_shorthand) {
parser.require_whitespace(); parser.require_whitespace();
block.error = parser.read_identifier(); block.error = parser.read_destructure_pattern();
parser.allow_whitespace(); parser.allow_whitespace();
} }

Loading…
Cancel
Save