[Pkg-javascript-commits] [uglifyjs] 99/190: Add start/end in the `arguments` definition

Antonio Terceiro terceiro at moszumanska.debian.org
Sun Aug 7 23:17:17 UTC 2016


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

terceiro pushed a commit to annotated tag upstream/2.7.0
in repository uglifyjs.

commit 915f907186bf4029c830716b9d018e2d09ad4120
Author: Mihai Bazon <mihai.bazon at gmail.com>
Date:   Wed Jan 27 11:36:03 2016 +0200

    Add start/end in the `arguments` definition
    
    (keeps my https://github.com/mishoo/jsinfo.el working)
---
 lib/scope.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/scope.js b/lib/scope.js
index 4cea517..20d9d73 100644
--- a/lib/scope.js
+++ b/lib/scope.js
@@ -242,7 +242,7 @@ AST_Lambda.DEFMETHOD("init_scope_vars", function(){
     AST_Scope.prototype.init_scope_vars.apply(this, arguments);
     this.uses_arguments = false;
 
-    var symbol = new AST_VarDef({ name: "arguments" });
+    var symbol = new AST_VarDef({ name: "arguments", start: this.start, end: this.end });
     var def = new SymbolDef(this, this.variables.size(), symbol);
     this.variables.set(symbol.name, def);
 });

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