aboutsummaryrefslogtreecommitdiff
path: root/test/compress
diff options
context:
space:
mode:
Diffstat (limited to 'test/compress')
-rw-r--r--test/compress/classes.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/compress/classes.js b/test/compress/classes.js
index f94731fb..386e3725 100644
--- a/test/compress/classes.js
+++ b/test/compress/classes.js
@@ -82,6 +82,19 @@ fields: {
node_version: ">=12"
}
+modifier_as_field_name: {
+ input: {
+ for (var k in new class { async; static = 42 })
+ console.log(k);
+ }
+ expect_exact: "for(var k in new class{async;static=42})console.log(k);"
+ expect_stdout: [
+ "async",
+ "static",
+ ]
+ node_version: ">=12"
+}
+
methods: {
input: {
"use strict";