From bbbd3f5bbb5abcb51fa5c1a8e9b3124121045f91 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Thu, 23 May 2024 21:25:13 -0400 Subject: [PATCH] remove text_prototype --- packages/svelte/src/internal/client/dom/operations.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/svelte/src/internal/client/dom/operations.js b/packages/svelte/src/internal/client/dom/operations.js index 37773893d2..df7210042d 100644 --- a/packages/svelte/src/internal/client/dom/operations.js +++ b/packages/svelte/src/internal/client/dom/operations.js @@ -9,9 +9,6 @@ import { current_effect } from '../runtime.js'; /** @type {Element} */ var element_prototype; -/** @type {Text} */ -var text_prototype; - // export these for reference in the compiled code, making global name deduplication unnecessary /** * @type {Window} @@ -32,7 +29,6 @@ export function init_operations() { } element_prototype = Element.prototype; - text_prototype = Text.prototype; $window = window; $document = document; @@ -48,7 +44,7 @@ export function init_operations() { element_prototype.__e = undefined; // @ts-expect-error - text_prototype.__nodeValue = ' '; + Text.prototype.__nodeValue = ' '; if (DEV) { // @ts-expect-error