From 577b8b667f73cc4184e4f757b41c86c5c7922156 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Fri, 23 Feb 2024 17:27:44 -0500 Subject: [PATCH] random-ass code --- .../svelte/src/internal/client/runtime.js | 21 ------------------- 1 file changed, 21 deletions(-) diff --git a/packages/svelte/src/internal/client/runtime.js b/packages/svelte/src/internal/client/runtime.js index a405a1e4df..a8437627c9 100644 --- a/packages/svelte/src/internal/client/runtime.js +++ b/packages/svelte/src/internal/client/runtime.js @@ -387,20 +387,6 @@ function destroy_references(signal) { } } -/** - * @param {import('./types.js').Block} block - * @param {unknown} error - * @returns {void} - */ -function report_error(block, error) { - /** @type {import('./types.js').Block | null} */ - let current_block = block; - - if (current_block !== null) { - throw error; - } -} - /** * @param {import('./types.js').EffectSignal} signal * @returns {void} @@ -427,13 +413,6 @@ export function execute_effect(signal) { if (typeof possible_teardown === 'function') { signal.v = possible_teardown; } - } catch (error) { - const block = signal.b; - if (block !== null) { - report_error(block, error); - } else { - throw error; - } } finally { current_effect = previous_effect; }