Skip to content

Commit 9f0c1f7

Browse files
committed
tweak
1 parent a45aab6 commit 9f0c1f7

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

packages/svelte/src/internal/client/error-handling.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@ import { BOUNDARY_EFFECT, EFFECT_RAN } from './constants.js';
66
import { define_property } from '../shared/utils.js';
77
import { active_effect } from './runtime.js';
88

9-
// Used for DEV time error handling
10-
/** @param {WeakSet<Error>} value */
11-
const adjusted_errors = new WeakSet();
12-
139
/**
1410
* @param {unknown} error
1511
*/
@@ -55,8 +51,11 @@ export function invoke_error_boundary(error, effect) {
5551
throw error;
5652
}
5753

54+
/** @type {WeakSet<Error>} */
55+
const adjusted_errors = new WeakSet();
56+
5857
/**
59-
* Add useful information to the error message/stack
58+
* Add useful information to the error message/stack in development
6059
* @param {Error} error
6160
* @param {Effect} effect
6261
*/

0 commit comments

Comments
 (0)