Skip to content

Commit a7a6d89

Browse files
authored
fix: correctly handle functions when determining async blockers (#17137)
* fix: correctly handle functions when determining async blockers We didn't properly handle functions (function declarations/expressions/arrow functions) when calculating what is a blocker. More specifically - we did defer assignment of variable declarations even for arrow functions and function expressions, which is unnecessary and causes bugs when they're then referenced eagerly further below - we did not compute blockers for functions. They could reference blockers themselves, as such other code referencing them should wait on the related blockers Fixes #17129 * put into its own function * fix: take blockers into account when creating `#await` blocks The unrelated-but-in-the-same-issue-referenced-bug * oops * fix * minimize compiled output changes * no idea why editor showed these as unused
1 parent e0501ed commit a7a6d89

File tree

15 files changed

+434
-207
lines changed

15 files changed

+434
-207
lines changed

.changeset/gentle-showers-speak.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'svelte': patch
3+
---
4+
5+
fix: correctly handle functions when determining async blockers

.changeset/soft-radios-make.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'svelte': patch
3+
---
4+
5+
fix: take blockers into account when creating `#await` blocks

0 commit comments

Comments
 (0)