aboutsummaryrefslogtreecommitdiff
path: root/test/compress/evaluate.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/compress/evaluate.js')
-rw-r--r--test/compress/evaluate.js25
1 files changed, 25 insertions, 0 deletions
diff --git a/test/compress/evaluate.js b/test/compress/evaluate.js
index 7466d63b..73c982f2 100644
--- a/test/compress/evaluate.js
+++ b/test/compress/evaluate.js
@@ -3117,3 +3117,28 @@ issue_4422: {
}
expect_stdout: "PASS"
}
+
+issue_4480: {
+ options = {
+ evaluate: true,
+ reduce_vars: true,
+ unused: true,
+ }
+ input: {
+ var a = function f(b) {
+ b = "FAIL";
+ arguments[0] = "PASS";
+ var arguments = 0;
+ console.log(b);
+ }(a);
+ }
+ expect: {
+ var a = function(b) {
+ b = "FAIL";
+ arguments[0] = "PASS";
+ var arguments = 0;
+ console.log(b);
+ }(a);
+ }
+ expect_stdout: "PASS"
+}