From 3c0601223ee1d25dee15bcccf373e533534a4e09 Mon Sep 17 00:00:00 2001 From: ComputerGuy <63362464+Ocean-OS@users.noreply.github.com> Date: Fri, 18 Apr 2025 13:08:28 -0700 Subject: [PATCH] remove some methods --- packages/svelte/src/compiler/phases/scope.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/packages/svelte/src/compiler/phases/scope.js b/packages/svelte/src/compiler/phases/scope.js index 2e28cdfb6d..47eaf5d4ba 100644 --- a/packages/svelte/src/compiler/phases/scope.js +++ b/packages/svelte/src/compiler/phases/scope.js @@ -70,7 +70,6 @@ const globals = { 'Number.parseFloat': [NUMBER, Number.parseFloat], 'Number.parseInt': [NUMBER, Number.parseInt], 'Object.is': [[true, false], Object.is], - 'Object.hasOwn': [[true, false], Object.hasOwn], String: [STRING, String], 'String.fromCharCode': [STRING, String.fromCharCode], 'String.fromCodePoint': [STRING, String.fromCodePoint] @@ -117,7 +116,6 @@ const prototype_methods = { startsWith: [[true, false], call_bind(string_proto.startsWith)], endsWith: [[true, false], call_bind(string_proto.endsWith)], isWellFormed: [[true, false], call_bind(string_proto.isWellFormed)], - lastIndexOf: [NUMBER, call_bind(string_proto.lastIndexOf)], normalize: [STRING, call_bind(string_proto.normalize)], padEnd: [STRING, call_bind(string_proto.padEnd)], padStart: [STRING, call_bind(string_proto.padStart)],