fix corner case with class (#4713)

This commit is contained in:
Alex Lam S.L
2021-03-02 04:08:08 +00:00
committed by GitHub
parent 68b2dadc58
commit 62887f2c66
2 changed files with 25 additions and 10 deletions

View File

@@ -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";