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

14 lines
198 B
JavaScript

function Component(props) {
let y = 0;
foo: for (let x = 0; x < 10; x++) {
if (x == 7) {
break foo;
}
y = x + y;
continue foo;
}
bar: if (props) {
break bar;
}
}