add test for breaking from a reactive block

pull/3726/head
Conduitry 6 years ago
parent ddbbccc9e4
commit 275b2cb251

@ -0,0 +1,3 @@
export default {
html: `<h1>1 2</h1>`
};

@ -0,0 +1,14 @@
<script>
let foo = 0;
let bar;
$: {
bar = foo + 1;
if (foo) {
break $;
}
bar = foo + 2;
}
foo = 1;
</script>
<h1>{foo} {bar}</h1>
Loading…
Cancel
Save