From e7beee177d60040890b5e284df93fc70a884701f Mon Sep 17 00:00:00 2001 From: Ingvar Stepanyan Date: Wed, 14 Jan 2015 12:35:00 +0200 Subject: [PATCH] Remove deprecated `ComprehensionBlock.of` property. Comprehensions were moved to ES7 anyway, so there is no sense in keeping intermediate no-more-supported syntax. --- acorn.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/acorn.js b/acorn.js index beb4959cf5..7d3bcb2082 100644 --- a/acorn.js +++ b/acorn.js @@ -2749,9 +2749,6 @@ checkLVal(block.left, true); if (tokType !== _name || tokVal !== "of") unexpected(); next(); - // `of` property is here for compatibility with Esprima's AST - // which also supports deprecated [for (... in ...) expr] - block.of = true; block.right = parseExpression(); expect(_parenR); node.blocks.push(finishNode(block, "ComprehensionBlock"));