aboutsummaryrefslogtreecommitdiff
path: root/test/compress/loops.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/compress/loops.js')
-rw-r--r--test/compress/loops.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/compress/loops.js b/test/compress/loops.js
index 4ba0d075..c1f075cc 100644
--- a/test/compress/loops.js
+++ b/test/compress/loops.js
@@ -852,6 +852,20 @@ for_async_of: {
node_version: ">=0.12 <16"
}
+for_of_regexp: {
+ input: {
+ for (var a of /foo/);
+ }
+ expect_exact: "for(var a of/foo/);"
+}
+
+for_await_of_regexp: {
+ input: {
+ for await (var a of /foo/);
+ }
+ expect_exact: "for await(var a of/foo/);"
+}
+
issue_3631_1: {
options = {
dead_code: true,