diff options
Diffstat (limited to 'test/compress/collapse_vars.js')
-rw-r--r-- | test/compress/collapse_vars.js | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/test/compress/collapse_vars.js b/test/compress/collapse_vars.js index 0c232aa0..f99e0124 100644 --- a/test/compress/collapse_vars.js +++ b/test/compress/collapse_vars.js @@ -8164,3 +8164,34 @@ issue_3927: { } expect_stdout: "PASS" } + +operator_in: { + options = { + collapse_vars: true, + } + input: { + function log(msg) { + console.log(msg); + } + var a = "FAIL"; + try { + a = "PASS"; + 0 in null; + log("FAIL", a); + } catch (e) {} + log(a); + } + expect: { + function log(msg) { + console.log(msg); + } + var a = "FAIL"; + try { + a = "PASS"; + 0 in null; + log("FAIL", a); + } catch (e) {} + log(a); + } + expect_stdout: "PASS" +} |