Skip to content
This repository has been archived by the owner on Dec 16, 2021. It is now read-only.

false positive infinite loop detected with async generator #109

Closed
m59peacemaker opened this issue Apr 30, 2020 · 2 comments
Closed

false positive infinite loop detected with async generator #109

m59peacemaker opened this issue Apr 30, 2020 · 2 comments

Comments

@m59peacemaker
Copy link

https://svelte.dev/repl/c42e039670d14b3a807aa6576dd3c86b?version=3.21.0

It seems like something about for await iterating an async generator that has a while or for loop in it triggers the infinite loop detection. Granted, it is an infinite loop, just not in the same sense this detection is meant to block.

@Conduitry
Copy link
Member

Probably a duplicate of sveltejs/svelte#4698 which has a fix sveltejs/svelte#4716 to be released in the next Svelte version.

@Conduitry
Copy link
Member

Indeed a duplicate of 4698, and fixed in 3.22.0 https://svelte.dev/repl/c42e039670d14b3a807aa6576dd3c86b?version=3.22.0

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants