aboutsummaryrefslogtreecommitdiff
path: root/test/compress
diff options
context:
space:
mode:
Diffstat (limited to 'test/compress')
-rw-r--r--test/compress/evaluate.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/compress/evaluate.js b/test/compress/evaluate.js
index 9f97ba99..6d4d084d 100644
--- a/test/compress/evaluate.js
+++ b/test/compress/evaluate.js
@@ -2894,3 +2894,17 @@ issue_4067: {
}
expect_stdout: "NaN"
}
+
+issue_4077: {
+ options = {
+ evaluate: true,
+ unsafe: true,
+ }
+ input: {
+ console.log((a = []) - (a[0]++, 1) || "PASS");
+ }
+ expect: {
+ console.log((a = []) - (a[0]++, 1) || "PASS");
+ }
+ expect_stdout: "PASS"
+}