mirror of https://github.com/sveltejs/svelte
commit
6c6c039617
@ -0,0 +1,6 @@
|
||||
export default {
|
||||
compileOptions: {
|
||||
dev: true,
|
||||
loopGuardTimeout: 1,
|
||||
},
|
||||
};
|
@ -0,0 +1,14 @@
|
||||
<script>
|
||||
const it = gen();
|
||||
it.next();
|
||||
|
||||
setTimeout(() => {
|
||||
it.next();
|
||||
}, 20)
|
||||
|
||||
function* gen() {
|
||||
while (true) {
|
||||
yield;
|
||||
}
|
||||
}
|
||||
</script>
|
Loading…
Reference in new issue