Files
react/compiler/crates/react_semantic_analysis/tests/fixtures/function-hoisting.js
2024-04-02 16:49:31 -07:00

23 lines
372 B
JavaScript

function Component(props) {
foo();
if (props) {
{
for (;;) {
while (true) {
do {
function foo() {
bar();
if (props) {
const _ = function bar() {};
}
}
break;
} while (true);
break;
}
break;
}
}
}
}