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

@@ -3878,10 +3878,9 @@ recursive_function_replacement: {
console.log(f(c));
}
expect: {
function f(n) {
return x(y(f(n)));
}
console.log(f(c));
console.log(function n(o) {
return x(y(n(o)));
}(c));
}
}