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:
Ingvar Stepanyan 2015-01-14 12:35:00 +02:00
parent 7e85da74cb
commit e7beee177d

View File

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