[Pkg-javascript-commits] [uglifyjs] 298/491: backport test from #2526 (#2534)

Jonas Smedegaard dr at jones.dk
Wed Feb 14 19:51:46 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 18302bf8e9507bbb661986e37cf66a95e6017271
Author: Alex Lam S.L <alexlamsl at gmail.com>
Date:   Wed Nov 29 13:32:00 2017 +0800

    backport test from #2526 (#2534)
---
 test/compress/reduce_vars.js | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/test/compress/reduce_vars.js b/test/compress/reduce_vars.js
index 82b5ad6..a8c151f 100644
--- a/test/compress/reduce_vars.js
+++ b/test/compress/reduce_vars.js
@@ -4525,3 +4525,21 @@ issue_2485: {
     }
     expect_stdout: "6"
 }
+
+issue_2455: {
+    options = {
+        reduce_vars: true,
+        unused: true,
+    }
+    input: {
+        function foo() {
+            var that = this;
+            for (;;) that.bar();
+        }
+    }
+    expect: {
+        function foo() {
+            for (;;) this.bar();
+        }
+    }
+}

-- 
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