aboutsummaryrefslogtreecommitdiff
path: root/test/compress/dead-code.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/compress/dead-code.js')
-rw-r--r--test/compress/dead-code.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/compress/dead-code.js b/test/compress/dead-code.js
index afc8c568..b66d5ac1 100644
--- a/test/compress/dead-code.js
+++ b/test/compress/dead-code.js
@@ -862,3 +862,20 @@ issue_2749: {
}
expect_stdout: "PASS"
}
+
+unsafe_builtin: {
+ options = {
+ side_effects: true,
+ unsafe: true,
+ }
+ input: {
+ (!w).constructor(x);
+ Math.abs(y);
+ [ 1, 2, z ].valueOf();
+ }
+ expect: {
+ w, x;
+ y;
+ z;
+ }
+}