Skip to content

Commit

Permalink
Add a test for swc-project#1660
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed May 9, 2021
1 parent 3ae2953 commit ae76d71
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions ecmascript/transforms/compat/tests/es2020_class_properties.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5235,3 +5235,15 @@ test!(
}
"
);

test!(
syntax(),
|_| { class_properties() },
issue_1660_1,
"
console.log(class { run() { } });
",
"
"
);

0 comments on commit ae76d71

Please sign in to comment.