fix isX variables not being reset on parseObj
This commit is contained in:
parent
3a59b5a151
commit
46977807b7
2
acorn.js
2
acorn.js
@ -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";
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user