--- source: crates/biome_js_analyze/tests/spec_tests.rs expression: valid.js --- # Input ```jsx A: { if (foo()) { break A; } bar(); } A: for (let i = 0; i < 10; ++i) { if (foo()) { break A; } bar(); } A: break A; A: { foo(); break A; bar(); } A: if (a) { foo(); if (b) break A; bar(); } A: for (var i = 0; i < 10; ++i) { foo(); if (a) break A; bar(); } A: for (var i = 0; i < 10; ++i) { foo(); if (a) continue A; bar(); } A: { B: break B; C: for (var i = 0; i < 10; ++i) { foo(); if (a) break A; if (c) continue C; bar(); } } // unbreakable statements A: var foo = 0; A: asserts(cond, "cond should hold"); ```