aboutsummaryrefslogtreecommitdiff
path: root/test/compress/objects.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/compress/objects.js')
-rw-r--r--test/compress/objects.js27
1 files changed, 27 insertions, 0 deletions
diff --git a/test/compress/objects.js b/test/compress/objects.js
index 5d3653d0..5e59726d 100644
--- a/test/compress/objects.js
+++ b/test/compress/objects.js
@@ -360,3 +360,30 @@ issue_4269_4: {
expect_stdout: "PASS"
node_version: ">=4"
}
+
+issue_4269_5: {
+ options = {
+ evaluate: true,
+ objects: true,
+ }
+ input: {
+ console.log({
+ get 42() {
+ return "FAIL";
+ },
+ [console]: "bar",
+ 42: "PASS",
+ }[42]);
+ }
+ expect: {
+ console.log({
+ get 42() {
+ return "FAIL";
+ },
+ [console]: "bar",
+ 42: "PASS",
+ }[42]);
+ }
+ expect_stdout: "PASS"
+ node_version: ">=4"
+}