perform reduce_vars on safe literals (#2351)

- constant expression
- single reference
- same scope
- not across loop body
This commit is contained in:
Alex Lam S.L
2017-10-09 12:25:06 +08:00
committed by GitHub
parent 1abe14296e
commit b810e2f8da
5 changed files with 286 additions and 36 deletions

View File

@@ -751,12 +751,12 @@ issue_1583: {
expect: {
function m(t) {
(function(e) {
t = e();
})(function() {
return (function(a) {
return a;
})(function(a) {});
});
t = function() {
return (function(a) {
return function(a) {};
})();
}();
})();
}
}
}