diff --git a/packages/svelte/src/internal/client/proxy.js b/packages/svelte/src/internal/client/proxy.js index c55462a06c..bf79f5a0b7 100644 --- a/packages/svelte/src/internal/client/proxy.js +++ b/packages/svelte/src/internal/client/proxy.js @@ -67,10 +67,6 @@ function init(is_array) { }; } -const set_size = /** @type {Function} */ ( - /** @type {PropertyDescriptor} */ (get_descriptor(set_prototype, 'size')).get -); - /** * @template T * @type {Record, ...args: any) => any>} @@ -138,14 +134,6 @@ const set_methods = { } return get(s); - }, - - get size() { - // @ts-expect-error - const metadata = /** @type {Metadata} */ (this[STATE_SYMBOL]); - - get(metadata.v); - return set_size.call(this); } };