aboutsummaryrefslogtreecommitdiff
path: root/test/compress
diff options
context:
space:
mode:
Diffstat (limited to 'test/compress')
-rw-r--r--test/compress/sandbox.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/compress/sandbox.js b/test/compress/sandbox.js
index 02097c1e..9356f6f3 100644
--- a/test/compress/sandbox.js
+++ b/test/compress/sandbox.js
@@ -80,3 +80,21 @@ log_global: {
}
expect_stdout: "[object global]"
}
+
+issue_4054: {
+ input: {
+ console.log({
+ set p(v) {
+ throw "FAIL";
+ },
+ });
+ }
+ expect: {
+ console.log({
+ set p(v) {
+ throw "FAIL";
+ },
+ });
+ }
+ expect_stdout: "{ p: [Setter] }"
+}