support destructuring of catch variable (#4412)
This commit is contained in:
@@ -1216,7 +1216,7 @@ function parse($TEXT, options) {
|
||||
var name = null;
|
||||
if (is("punc", "(")) {
|
||||
next();
|
||||
name = as_symbol(AST_SymbolCatch);
|
||||
name = maybe_destructured(AST_SymbolCatch);
|
||||
expect(")");
|
||||
}
|
||||
bcatch = new AST_Catch({
|
||||
|
||||
Reference in New Issue
Block a user