diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/compress/varify.js | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/compress/varify.js b/test/compress/varify.js index 95acd032..4d2a6b5a 100644 --- a/test/compress/varify.js +++ b/test/compress/varify.js @@ -390,3 +390,22 @@ issue_4290_1_let: { expect_stdout: true node_version: ">=4" } + +drop_forin_let: { + options = { + loops: true, + toplevel: true, + unused: true, + varify: true, + } + input: { + "use strict"; + for (let a in console.log("PASS")); + } + expect: { + "use strict"; + console.log("PASS"); + } + expect_stdout: "PASS" + node_version: ">=4" +} |