fix incorrect parseExpression arguments - not sure where this came from
This commit is contained in:
parent
37ca3c3d29
commit
301f639f73
2
acorn.js
2
acorn.js
@ -2628,7 +2628,7 @@
|
||||
// next token is a colon and the expression was a simple
|
||||
// Identifier node, we switch to interpreting it as a label.
|
||||
default:
|
||||
var maybeName = tokVal, expr = parseExpression(false, true);
|
||||
var maybeName = tokVal, expr = parseExpression();
|
||||
|
||||
if (options.ecmaVersion >= 7 && starttype === _name && maybeName === "async" && tokType === _function && !canInsertSemicolon()) {
|
||||
next();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user