mirror of
https://github.com/swc-project/swc.git
synced 2024-12-21 04:32:01 +03:00
c6b22c57f8
Co-authored-by: Fábio Santos <fabiosantosart@gmail.com>
13 lines
259 B
JavaScript
13 lines
259 B
JavaScript
const leak = () => {};
|
|
function scan() {
|
|
let len = leak();
|
|
let ch = 0;
|
|
switch ((ch = 123)) {
|
|
case "never-reached":
|
|
const ch = leak();
|
|
leak(ch);
|
|
}
|
|
return len === 123 ? "FAIL" : "PASS";
|
|
}
|
|
console.log(scan());
|