diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/compress/switch.js | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/test/compress/switch.js b/test/compress/switch.js index 2025d91b..654a838b 100644 --- a/test/compress/switch.js +++ b/test/compress/switch.js @@ -553,3 +553,29 @@ issue_1680_2: { } expect_stdout: true } + +issue_1690_1: { + options = { + dead_code: true, + } + input: { + switch (console.log("PASS")) {} + } + expect: { + console.log("PASS"); + } + expect_stdout: "PASS" +} + +issue_1690_2: { + options = { + dead_code: false, + } + input: { + switch (console.log("PASS")) {} + } + expect: { + switch (console.log("PASS")) {} + } + expect_stdout: "PASS" +} |