diff --git a/crates/swc_ecma_minifier/tests/exec.rs b/crates/swc_ecma_minifier/tests/exec.rs index 1ec5f9cc0163..4d4acb59c1ea 100644 --- a/crates/swc_ecma_minifier/tests/exec.rs +++ b/crates/swc_ecma_minifier/tests/exec.rs @@ -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)");