Skip to content

Commit

Permalink
Add a test dor swc-project#6004
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Oct 6, 2022
1 parent d65fba1 commit 0b6f2d5
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions crates/swc_ecma_minifier/tests/exec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10133,6 +10133,24 @@ fn feedback_regex_range() {

#[test]
fn issue_6047_1() {
fn issue_6004() {
run_default_exec_test(
r###"
const props = {'a': 1, 'b': 2};
const isBox = 'a' in props || 'b' in props;
for (const p in props) {
delete props[p];
}
console.log(isBox);
"###,
);
}

#[test]
fn issue_6051() {
run_default_exec_test(
r###"
let foo = () => 1;
Expand Down

0 comments on commit 0b6f2d5

Please sign in to comment.