fix catch shorthand read_context usage

pull/4596/head
Tan Li Hau 5 years ago
parent 2814b1d9c2
commit 794479664d

@ -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_destructure_pattern(); block.error = read_context(parser);
parser.allow_whitespace(); parser.allow_whitespace();
} }

Loading…
Cancel
Save