[Pkg-javascript-commits] [node-acorn-jsx] 413/484: Make top-level equal to block statement context.

Bastien Roucariès rouca at moszumanska.debian.org
Sat Aug 19 14:21:03 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 39d752dc6b446380b77c2c2143150455e13cb8c2
Author: Ingvar Stepanyan <me at rreverser.com>
Date:   Fri Jan 23 11:48:39 2015 +0200

    Make top-level equal to block statement context.
    
    Fixes #203.
---
 acorn.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/acorn.js b/acorn.js
index f4b1534..c60c6ea 100644
--- a/acorn.js
+++ b/acorn.js
@@ -614,7 +614,7 @@
       tokPos = tokLineStart = 0;
     }
     tokType = _eof;
-    tokContext = [];
+    tokContext = [b_stat];
     tokExprAllowed = true;
     if (tokPos === 0 && options.allowHashBang && input.slice(0, 2) === '#!') {
       skipLineComment(2);

-- 
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