From: Ingvar Stepanyan Date: Fri, 8 Aug 2014 11:54:34 +0000 (+0300) Subject: Location fix for Mozilla AST start token. X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=f16033aafdd7f88da6b53c58f86b8effd1fb2a3d;p=UglifyJS.git Location fix for Mozilla AST start token. --- diff --git a/lib/mozilla-ast.js b/lib/mozilla-ast.js index 5056ffed..1deb18e2 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 }); };