Add start/end in the `arguments` definition
authorMihai Bazon <mihai.bazon@gmail.com>
Wed, 27 Jan 2016 09:36:03 +0000 (11:36 +0200)
committerMihai 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

index 4cea517..20d9d73 100644 (file)
@@ -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);
 });