From: Mihai Bazon Date: Wed, 27 Jan 2016 09:36:03 +0000 (+0200) Subject: Add start/end in the `arguments` definition X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=915f907186bf4029c830716b9d018e2d09ad4120;p=UglifyJS.git Add start/end in the `arguments` definition (keeps my https://github.com/mishoo/jsinfo.el working) --- 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); });