From 915f907186bf4029c830716b9d018e2d09ad4120 Mon Sep 17 00:00:00 2001 From: Mihai Bazon Date: Wed, 27 Jan 2016 11:36:03 +0200 Subject: [PATCH] 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 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); }); -- 2.34.1