fix various for-of bugs (#2800)

- disable `rename` pass on harmony due to problem with for-of loops

fixes #2794
This commit is contained in:
kzc
2018-01-17 01:46:23 -05:00
committed by Alex Lam S.L
parent 1b2e6b81a2
commit 4f57d8746b
4 changed files with 203 additions and 7 deletions

View File

@@ -405,7 +405,8 @@ describe("minify", function() {
});
});
describe("rename", function() {
// rename is disabled on harmony due to expand_names bug in for-of loops
if (0) describe("rename", function() {
it("Should be repeatable", function() {
var code = "!function(x){return x(x)}(y);";
for (var i = 0; i < 2; i++) {