From 794479664d0a6220d24cb5ba7a02c731059bd858 Mon Sep 17 00:00:00 2001 From: Tan Li Hau Date: Sun, 10 May 2020 12:28:52 +0800 Subject: [PATCH] fix catch shorthand read_context usage --- src/compiler/parse/state/mustache.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/parse/state/mustache.ts b/src/compiler/parse/state/mustache.ts index e50911ac08..4e1d5c5fd4 100644 --- a/src/compiler/parse/state/mustache.ts +++ b/src/compiler/parse/state/mustache.ts @@ -312,7 +312,7 @@ export default function mustache(parser: Parser) { const await_block_catch_shorthand = !await_block_shorthand && type === 'AwaitBlock' && parser.eat('catch'); if (await_block_catch_shorthand) { parser.require_whitespace(); - block.error = parser.read_destructure_pattern(); + block.error = read_context(parser); parser.allow_whitespace(); }