From c735f2b7b7ebc8fbf0cc74243d9d541cce78ca3a Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Wed, 15 Nov 2023 11:15:08 -0500 Subject: [PATCH] remove unnecessary coercion --- packages/svelte/src/internal/client/operations.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/svelte/src/internal/client/operations.js b/packages/svelte/src/internal/client/operations.js index f1a7e96082..764c33b7da 100644 --- a/packages/svelte/src/internal/client/operations.js +++ b/packages/svelte/src/internal/client/operations.js @@ -61,9 +61,10 @@ export function init_operations() { if (node_prototype !== undefined) { return; } - node_prototype = /** @type {Node} */ (Node.prototype); - element_prototype = /** @type {Element} */ (Element.prototype); - text_prototype = /** @type {Text} */ (Text.prototype); + + node_prototype = Node.prototype; + element_prototype = Element.prototype; + text_prototype = Text.prototype; map_prototype = Map.prototype; append_child_method = node_prototype.appendChild; clone_node_method = node_prototype.cloneNode;