aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/compress/sequences.js19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/compress/sequences.js b/test/compress/sequences.js
index 648f6491..c0b77127 100644
--- a/test/compress/sequences.js
+++ b/test/compress/sequences.js
@@ -1093,3 +1093,22 @@ issue_3490_2: {
}
expect_stdout: "PASS 42"
}
+
+issue_3703: {
+ options = {
+ evaluate: true,
+ sequences: true,
+ unsafe: true,
+ }
+ input: {
+ var a = "FAIL";
+ while ((a = "PASS", 0).foo = 0);
+ console.log(a);
+ }
+ expect: {
+ var a = "FAIL";
+ while (a = "PASS", (0).foo = 0);
+ console.log(a);
+ }
+ expect_stdout: "PASS"
+}