function invoke_error_boundary(error, effect) {
	while (effect !== null) {
		if ((effect.f & BOUNDARY_EFFECT) !== 0) {
			try {
				// @ts-expect-error
				effect.fn(error);
				return;
			} catch {}
		}

		effect = effect.parent;
	}

	throw error;
}
@param {unknown} error
@param {Effect | null} effect