replace single-use recursive functions (#2659)

fixes #2628
This commit is contained in:
Alex Lam S.L
2017-12-26 21:25:35 +08:00
committed by GitHub
parent 7f342cb3e3
commit 4832bc5d88
5 changed files with 63 additions and 26 deletions

View File

@@ -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();
}();
}
}
}