diff options
Diffstat (limited to 'test/compress')
-rw-r--r-- | test/compress/collapse_vars.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/compress/collapse_vars.js b/test/compress/collapse_vars.js index 58325be1..cc6c5f9a 100644 --- a/test/compress/collapse_vars.js +++ b/test/compress/collapse_vars.js @@ -2578,6 +2578,23 @@ chained_3: { expect_stdout: "2" } +chained_4: { + options = { + collapse_vars: true, + } + input: { + var a = "foo", b = 42; + var b = void (b = a); + console.log(a, b); + } + expect: { + var a = "foo", b = 42; + var b = void (b = a); + console.log(a, b); + } + expect_stdout: "foo undefined" +} + boolean_binary_1: { options = { collapse_vars: true, |