aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMihai Bazon <mihai.bazon@gmail.com>2016-01-27 11:36:03 +0200
committerMihai Bazon <mihai.bazon@gmail.com>2016-01-27 11:36:03 +0200
commit915f907186bf4029c830716b9d018e2d09ad4120 (patch)
treee83212ac0112bf9b21889b798470362cfc6143e0
parent799509e145e56a9a6ccbaad6d32e1c404e0469eb (diff)
downloadtracifyjs-915f907186bf4029c830716b9d018e2d09ad4120.tar.gz
tracifyjs-915f907186bf4029c830716b9d018e2d09ad4120.zip
Add start/end in the `arguments` definition
(keeps my https://github.com/mishoo/jsinfo.el working)
-rw-r--r--lib/scope.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/scope.js b/lib/scope.js
index 4cea5176..20d9d730 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);
});