public
/
UglifyJS.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc5047c
)
backport test from #2526 (#2534)
author
Alex Lam S.L
<alexlamsl@gmail.com>
Wed, 29 Nov 2017 05:32:00 +0000
(13:32 +0800)
committer
GitHub
<noreply@github.com>
Wed, 29 Nov 2017 05:32:00 +0000
(13:32 +0800)
test/compress/reduce_vars.js
patch
|
blob
|
history
diff --git
a/test/compress/reduce_vars.js
b/test/compress/reduce_vars.js
index
82b5ad6
..
a8c151f
100644
(file)
--- 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();
+ }
+ }
+}