<script>
let node;
function foo() {
const guard = 'foo';
while(true) {
console.log(guard);
}
foo();
for(;;) {
while(true) foo();
$: while(true) foo();
do foo(); while(true);
$: do foo(); while(true);
</script>
<div bind:this={node}></div>