[Pkg-javascript-commits] [uglifyjs] 353/491: remove AST hack from `inline` (#2627)

Jonas Smedegaard dr at jones.dk
Wed Feb 14 19:51:52 UTC 2018


This is an automated email from the git hooks/post-receive script.

js pushed a commit to annotated tag debian/3.3.10-1
in repository uglifyjs.

commit 7ac7b0872fd8ba6866162697ac6956a737e20a04
Author: Alex Lam S.L <alexlamsl at gmail.com>
Date:   Wed Dec 20 17:05:53 2017 +0800

    remove AST hack from `inline` (#2627)
---
 lib/compress.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lib/compress.js b/lib/compress.js
index 3410b5a..85cc6dd 100644
--- a/lib/compress.js
+++ b/lib/compress.js
@@ -4036,8 +4036,10 @@ merge(Compressor.prototype, {
                     scope.var_names()[name.name] = true;
                     scope.variables.set(name.name, def);
                     scope.enclosed.push(def);
+                    var symbol = make_node(AST_SymbolVar, name, name);
+                    def.orig.push(symbol);
                     decls.unshift(make_node(AST_VarDef, name, {
-                        name: name,
+                        name: symbol,
                         value: null
                     }));
                     var sym = make_node(AST_SymbolRef, name, name);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/uglifyjs.git



More information about the Pkg-javascript-commits mailing list