Files
react/compiler/crates/react_hermes_parser/tests/fixtures/constant-propagation-phi.js
2024-04-02 16:49:31 -07:00

14 lines
151 B
JavaScript

function foo(a, b, c) {
let x;
if (a) {
x = 2 - 1;
} else {
x = 0 + 1;
}
if (x === 1) {
return b;
} else {
return c;
}
}