aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/compress/properties.js19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/compress/properties.js b/test/compress/properties.js
index 45f870df..496a43ca 100644
--- a/test/compress/properties.js
+++ b/test/compress/properties.js
@@ -841,3 +841,22 @@ lhs_prop_2: {
"abc"[2] = "g";
}
}
+
+literal_duplicate_key_side_effects: {
+ options = {
+ unsafe: true,
+ }
+ input: {
+ console.log({
+ a: "FAIL",
+ a: console.log ? "PASS" : "FAIL"
+ }.a);
+ }
+ expect: {
+ console.log({
+ a: "FAIL",
+ a: console.log ? "PASS" : "FAIL"
+ }.a);
+ }
+ expect_stdout: "PASS"
+}