pull/16091/head
Rich Harris 4 months ago
parent a45aab670e
commit 9f0c1f7950

@ -6,10 +6,6 @@ import { BOUNDARY_EFFECT, EFFECT_RAN } from './constants.js';
import { define_property } from '../shared/utils.js'; import { define_property } from '../shared/utils.js';
import { active_effect } from './runtime.js'; import { active_effect } from './runtime.js';
// Used for DEV time error handling
/** @param {WeakSet<Error>} value */
const adjusted_errors = new WeakSet();
/** /**
* @param {unknown} error * @param {unknown} error
*/ */
@ -55,8 +51,11 @@ export function invoke_error_boundary(error, effect) {
throw error; throw error;
} }
/** @type {WeakSet<Error>} */
const adjusted_errors = new WeakSet();
/** /**
* Add useful information to the error message/stack * Add useful information to the error message/stack in development
* @param {Error} error * @param {Error} error
* @param {Effect} effect * @param {Effect} effect
*/ */

Loading…
Cancel
Save