Skip to content

Commit 48939c5

Browse files
committed
tweaks
1 parent c2d92dd commit 48939c5

File tree

1 file changed

+3
-2
lines changed
  • packages/svelte/src/internal/client/dom/blocks

1 file changed

+3
-2
lines changed

packages/svelte/src/internal/client/dom/blocks/boundary.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,9 @@ export function boundary(node, boundary_fn, props) {
5959
var boundary = /** @type {Effect} */ (active_effect);
6060
var start = hydrate_node;
6161

62-
boundary.fn = (/** @type {any} */ payload) => {
63-
var { error } = payload;
62+
// We re-use the effect's fn property to avoid allocation of an additional field
63+
boundary.fn = (/** @type {{ error?: Error }} */ payload) => {
64+
let { error } = payload;
6465

6566
// In the future, boundaries might handle other things other than errors
6667
if (!error) {

0 commit comments

Comments
 (0)