fix isX variables not being reset on parseObj

This commit is contained in:
Sebastian McKenzie 2014-12-13 12:33:07 +11:00
parent 3a59b5a151
commit 46977807b7

View File

@ -2717,7 +2717,7 @@
if (options.allowTrailingCommas && eat(_braceR)) break; if (options.allowTrailingCommas && eat(_braceR)) break;
} else first = false; } else first = false;
var prop = startNode(), isGenerator, isAsync; var prop = startNode(), isGenerator = false, isAsync = false;
if (options.ecmaVersion >= 7 && tokType === _ellipsis) { if (options.ecmaVersion >= 7 && tokType === _ellipsis) {
prop = parseMaybeUnary(); prop = parseMaybeUnary();
prop.type = "SpreadProperty"; prop.type = "SpreadProperty";