[Pkg-javascript-commits] [uglifyjs] 29/77: Location fix for Mozilla AST start token.

Jonas Smedegaard dr at jones.dk
Tue May 19 00:02:29 UTC 2015


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

js pushed a commit to tag v2.4.18
in repository uglifyjs.

commit f16033aafdd7f88da6b53c58f86b8effd1fb2a3d
Author: Ingvar Stepanyan <me at rreverser.com>
Date:   Fri Aug 8 14:54:34 2014 +0300

    Location fix for Mozilla AST start token.
---
 lib/mozilla-ast.js | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/lib/mozilla-ast.js b/lib/mozilla-ast.js
index 5056ffe..1deb18e 100644
--- a/lib/mozilla-ast.js
+++ b/lib/mozilla-ast.js
@@ -373,11 +373,13 @@
         var loc = moznode.loc, start = loc && loc.start;
         var range = moznode.range;
         return new AST_Token({
-            file   : loc && loc.source,
-            line   : start && start.line,
-            col    : start && start.column,
-            pos    : range ? range[0] : moznode.start,
-            endpos : range ? range[0] : moznode.start
+            file    : loc && loc.source,
+            line    : start && start.line,
+            col     : start && start.column,
+            pos     : range ? range[0] : moznode.start,
+            endline : start && start.line,
+            endcol  : start && start.column,
+            endpos  : range ? range[0] : moznode.start
         });
     };
 

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



More information about the Pkg-javascript-commits mailing list