Skip to content

Commit

Permalink
Add a test
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Aug 28, 2024
1 parent da52930 commit dbb02fe
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions crates/swc_ecma_minifier/tests/exec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11347,6 +11347,19 @@ fn issue_9184_2() {
);
}

#[test]
fn issue_9499() {
run_default_exec_test(
"
const o = {'a': 1, 'b': 2};
function fn() {
return 'a' in o;
}
console.log(fn());
",
)
}

#[test]
fn issue_9356() {
run_default_exec_test("console.log((function ({ } = 42) { }).length)");
Expand Down

0 comments on commit dbb02fe

Please sign in to comment.