fix incorrect parseExpression arguments - not sure where this came from

This commit is contained in:
Sebastian McKenzie 2015-01-26 16:58:41 +11:00
parent 37ca3c3d29
commit 301f639f73

View File

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