aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/compress/drop-unused.js22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/compress/drop-unused.js b/test/compress/drop-unused.js
index 4448bdd8..1c9ab61f 100644
--- a/test/compress/drop-unused.js
+++ b/test/compress/drop-unused.js
@@ -3112,3 +3112,25 @@ issue_4235: {
}
expect_stdout: "undefined"
}
+
+issue_4404: {
+ options = {
+ pure_getters: "strict",
+ unused: true,
+ }
+ input: {
+ function f(a) {
+ arguments[0] = "PASS";
+ console.log(a);
+ }
+ f("FAIL");
+ }
+ expect: {
+ function f(a) {
+ arguments[0] = "PASS";
+ console.log(a);
+ }
+ f("FAIL");
+ }
+ expect_stdout: "PASS"
+}