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(); }