fix: avoid recursion error in `EachBlock` visitor (#16058)

pull/16059/head
ComputerGuy 4 months ago committed by GitHub
parent 8175091423
commit 6a3066519c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -0,0 +1,5 @@
---
'svelte': patch
---
fix: avoid recursion error in `EachBlock` visitor

@ -77,6 +77,9 @@ export function EachBlock(node, context) {
* @returns {void}
*/
function collect_transitive_dependencies(binding, bindings) {
if (bindings.has(binding)) {
return;
}
bindings.add(binding);
if (binding.kind === 'legacy_reactive') {

Loading…
Cancel
Save