aboutsummaryrefslogtreecommitdiff
path: root/test/compress/classes.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/compress/classes.js')
-rw-r--r--test/compress/classes.js19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/compress/classes.js b/test/compress/classes.js
index 78536094..95b4037d 100644
--- a/test/compress/classes.js
+++ b/test/compress/classes.js
@@ -596,3 +596,22 @@ issue_4681: {
expect_stdout: "function"
node_version: ">=12"
}
+
+issue_4683: {
+ options = {
+ dead_code: true,
+ evaluate: true,
+ loops: true,
+ }
+ input: {
+ "use strict";
+ for (class extends null {}; void console.log("PASS"); );
+ }
+ expect: {
+ "use strict";
+ (class extends null {});
+ void console.log("PASS");
+ }
+ expect_stdout: "PASS"
+ node_version: ">=4"
+}