Skip to content

Commit 1ff56e2

Browse files
committed
fix: type in catch blocks
1 parent 90f1fa0 commit 1ff56e2

File tree

1 file changed

+1
-1
lines changed
  • packages/svelte/src/compiler/phases/3-transform/server/visitors

1 file changed

+1
-1
lines changed

packages/svelte/src/compiler/phases/3-transform/server/visitors/AwaitBlock.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export function AwaitBlock(node, context) {
5252
node.error
5353
? [
5454
/** @type {Pattern} */ (context.visit(node.error)),
55-
b.assignment_pattern(b.id('$$payload'), b.id('$$payload'))
55+
b.assignment_pattern(b.id('$$async_payload'), b.id('$$payload'))
5656
]
5757
: [],
5858
catch_block

0 commit comments

Comments
 (0)