aboutsummaryrefslogtreecommitdiff
path: root/test/compress
diff options
context:
space:
mode:
Diffstat (limited to 'test/compress')
-rw-r--r--test/compress/arguments.js22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/compress/arguments.js b/test/compress/arguments.js
index 655d75a4..4c602a68 100644
--- a/test/compress/arguments.js
+++ b/test/compress/arguments.js
@@ -977,3 +977,25 @@ issue_4432: {
}
expect_stdout: "PASS"
}
+
+issue_4696: {
+ options = {
+ arguments: true,
+ keep_fargs: false,
+ }
+ input: {
+ console.log(function() {
+ for (arguments in [ 42 ]);
+ for (var a in arguments[0])
+ return "PASS";
+ }());
+ }
+ expect: {
+ console.log(function() {
+ for (arguments in [ 42 ]);
+ for (var a in arguments[0])
+ return "PASS";
+ }());
+ }
+ expect_stdout: "PASS"
+}