[Pkg-javascript-commits] [node-acorn-jsx] 391/484: Remove deprecated `ComprehensionBlock.of` property.

Bastien Roucariès rouca at moszumanska.debian.org
Sat Aug 19 14:21:01 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-acorn-jsx.

commit e7beee177d60040890b5e284df93fc70a884701f
Author: Ingvar Stepanyan <me at rreverser.com>
Date:   Wed Jan 14 12:35:00 2015 +0200

    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 beb4959..7d3bcb2 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"));

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-acorn-jsx.git



More information about the Pkg-javascript-commits mailing list