aboutsummaryrefslogtreecommitdiff
path: root/test/compress/reduce_vars.js
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2017-12-26 21:25:35 +0800
committerGitHub <noreply@github.com>2017-12-26 21:25:35 +0800
commit4832bc5d88e37ca35f1dd5f5d8ddd95cd8bbdd7d (patch)
tree925053e75bf5109861b7fdb54e30f0e5ae4b960f /test/compress/reduce_vars.js
parent7f342cb3e3abd3e39b18e62a2e9d6b8020d82773 (diff)
downloadtracifyjs-4832bc5d88e37ca35f1dd5f5d8ddd95cd8bbdd7d.tar.gz
tracifyjs-4832bc5d88e37ca35f1dd5f5d8ddd95cd8bbdd7d.zip
replace single-use recursive functions (#2659)
fixes #2628
Diffstat (limited to 'test/compress/reduce_vars.js')
-rw-r--r--test/compress/reduce_vars.js12
1 files changed, 5 insertions, 7 deletions
diff --git a/test/compress/reduce_vars.js b/test/compress/reduce_vars.js
index 2b2c77da..6f302ecd 100644
--- a/test/compress/reduce_vars.js
+++ b/test/compress/reduce_vars.js
@@ -1355,10 +1355,9 @@ defun_inline_1: {
function f() {
return function(b) {
return b;
- }(2) + h();
- function h() {
+ }(2) + function h() {
return h();
- }
+ }();
}
}
}
@@ -1382,12 +1381,11 @@ defun_inline_2: {
}
expect: {
function f() {
- function h() {
- return h();
- }
return function(b) {
return b;
- }(2) + h();
+ }(2) + function h() {
+ return h();
+ }();
}
}
}