Files
Nicolò RibaudoandGitHub 9b47dfb8f4 Register switch's discriminant in the outer scope (#15167)
* Add failing test

* Register `switch`'s `discriminant` in the outer scope
2022-11-09 16:10:55 +01:00

5 lines
40 B
JavaScript

let x;
switch (x) {
default: let x;
}