Remove deprecated ComprehensionBlock.of property.
Comprehensions were moved to ES7 anyway, so there is no sense in keeping intermediate no-more-supported syntax.
This commit is contained in:
parent
7e85da74cb
commit
e7beee177d
3
acorn.js
3
acorn.js
@ -2749,9 +2749,6 @@
|
|||||||
checkLVal(block.left, true);
|
checkLVal(block.left, true);
|
||||||
if (tokType !== _name || tokVal !== "of") unexpected();
|
if (tokType !== _name || tokVal !== "of") unexpected();
|
||||||
next();
|
next();
|
||||||
// `of` property is here for compatibility with Esprima's AST
|
|
||||||
// which also supports deprecated [for (... in ...) expr]
|
|
||||||
block.of = true;
|
|
||||||
block.right = parseExpression();
|
block.right = parseExpression();
|
||||||
expect(_parenR);
|
expect(_parenR);
|
||||||
node.blocks.push(finishNode(block, "ComprehensionBlock"));
|
node.blocks.push(finishNode(block, "ComprehensionBlock"));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user