Files
react/compiler/crates/react_hermes_parser/tests/fixtures/switch-with-fallthrough.js
2024-04-02 16:49:31 -07:00

28 lines
293 B
JavaScript

function foo(x) {
let y;
switch (x) {
case 0: {
y = 0;
}
case 1: {
y = 1;
}
case 2: {
break;
}
case 3: {
y = 3;
break;
}
case 4: {
y = 4;
}
case 5: {
y = 5;
}
default: {
y = 0;
}
}
}