[Pkg-javascript-commits] [node-acorn-jsx] 347/484: Properly initialize top node start position

Bastien Roucariès rouca at moszumanska.debian.org
Sat Aug 19 14:20:54 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 98691e5b808fc332aedabb47ad2c3ab66487bfb8
Author: Marijn Haverbeke <marijnh at gmail.com>
Date:   Wed Nov 12 17:31:45 2014 +0100

    Properly initialize top node start position
---
 acorn.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/acorn.js b/acorn.js
index 97ccf2c..ca5e8eb 100644
--- a/acorn.js
+++ b/acorn.js
@@ -43,7 +43,7 @@
     input = String(inpt); inputLen = input.length;
     setOptions(opts);
     initTokenState();
-    var startPos = options.locations ? [tokStart, new Position] : tokStart;
+    var startPos = options.locations ? [tokPos, new Position] : tokPos;
     initParserState();
     return parseTopLevel(options.program || startNodeAt(startPos));
   };

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