From 634bad99702ee978026d7982c38a7eda1ec8fb6e Mon Sep 17 00:00:00 2001 From: Tan Li Hau Date: Mon, 16 Mar 2020 07:52:05 +0800 Subject: [PATCH] fix test --- 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 c2f6b640af..0f6608f679 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_identifier(); + block.error = parser.read_destructure_pattern(); parser.allow_whitespace(); }