public
/
UglifyJS.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
799509e
)
Add start/end in the `arguments` definition
author
Mihai Bazon
<mihai.bazon@gmail.com>
Wed, 27 Jan 2016 09:36:03 +0000
(11:36 +0200)
committer
Mihai Bazon
<mihai.bazon@gmail.com>
Wed, 27 Jan 2016 09:36:03 +0000
(11:36 +0200)
(keeps my https://github.com/mishoo/jsinfo.el working)
lib/scope.js
patch
|
blob
|
history
diff --git
a/lib/scope.js
b/lib/scope.js
index
4cea517
..
20d9d73
100644
(file)
--- 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);
});