diff options
Diffstat (limited to 'test/compress/pure_getters.js')
-rw-r--r-- | test/compress/pure_getters.js | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/test/compress/pure_getters.js b/test/compress/pure_getters.js index 61ce8a92..b6e42f9d 100644 --- a/test/compress/pure_getters.js +++ b/test/compress/pure_getters.js @@ -1161,3 +1161,29 @@ collapse_rhs_lhs: { } expect_stdout: "1 3" } + +drop_arguments: { + options = { + pure_getters: "strict", + side_effects: true, + } + input: { + (function() { + arguments.slice = function() { + console.log("PASS"); + }; + arguments[42]; + arguments.length; + arguments.slice(); + })(); + } + expect: { + (function() { + arguments.slice = function() { + console.log("PASS"); + }; + arguments.slice(); + })(); + } + expect_stdout: "PASS" +} |