fix destructering defaults in params
This commit is contained in:
parent
9d4ab350f5
commit
8ca1be061e
2
acorn.js
2
acorn.js
@ -3020,7 +3020,7 @@
|
|||||||
defaults.push(null);
|
defaults.push(null);
|
||||||
break;
|
break;
|
||||||
} else {
|
} else {
|
||||||
var param = options.ecmaVersion >= 6 ? toAssignable(parseExprAtom(), false, true) : parseIdent();
|
var param = parseAssignableAtom();
|
||||||
parseFunctionParam(param);
|
parseFunctionParam(param);
|
||||||
node.params.push(param);
|
node.params.push(param);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user