diff options
author | Anthony Van de Gejuchte <anthonyvdgent@gmail.com> | 2016-01-10 23:33:54 +0100 |
---|---|---|
committer | Anthony Van de Gejuchte <anthonyvdgent@gmail.com> | 2016-01-14 19:45:52 +0100 |
commit | 6605d1578351939ee0e39a13bf68cc9c1708c918 (patch) | |
tree | b3cbd26a94192e5b619ee111b3ce61b9d507fcb6 /test/compress | |
parent | ac8db977b95b447cba577b41285cb0fa9e65ebdd (diff) | |
download | tracifyjs-6605d1578351939ee0e39a13bf68cc9c1708c918.tar.gz tracifyjs-6605d1578351939ee0e39a13bf68cc9c1708c918.zip |
Never mangle arguments and keep them in their scope
Fixes #892
Helped-by: kzc
Diffstat (limited to 'test/compress')
-rw-r--r-- | test/compress/issue-892.js | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/test/compress/issue-892.js b/test/compress/issue-892.js new file mode 100644 index 00000000..2dab420f --- /dev/null +++ b/test/compress/issue-892.js @@ -0,0 +1,32 @@ +dont_mangle_arguments: { + mangle = { + }; + options = { + sequences : true, + properties : true, + dead_code : true, + drop_debugger : true, + conditionals : true, + comparisons : true, + evaluate : true, + booleans : true, + loops : true, + unused : true, + hoist_funs : true, + keep_fargs : true, + keep_fnames : false, + hoist_vars : true, + if_return : true, + join_vars : true, + cascade : true, + side_effects : true, + negate_iife : false + }; + input: { + (function(){ + var arguments = arguments, not_arguments = 9; + console.log(not_arguments, arguments); + })(5,6,7); + } + expect_exact: "(function(){var arguments=arguments,o=9;console.log(o,arguments)})(5,6,7);" +} |