From 6cb451dfb052b976cd7f13ea4ca9efc497dcfda3 Mon Sep 17 00:00:00 2001 From: Dominic Gannaway Date: Tue, 14 May 2024 15:00:13 +0100 Subject: [PATCH] tune --- packages/svelte/src/internal/client/dev/equality.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/svelte/src/internal/client/dev/equality.js b/packages/svelte/src/internal/client/dev/equality.js index 7b430411e2..0424e16b22 100644 --- a/packages/svelte/src/internal/client/dev/equality.js +++ b/packages/svelte/src/internal/client/dev/equality.js @@ -10,7 +10,7 @@ export function init_array_prototype_warnings() { array_prototype.indexOf = function (search_element, from_index) { const index = original_index_of.call(this, search_element, from_index); if (index === -1) { - if (original_index_of.call(raw(this), search_element, from_index) !== -1) { + if (original_index_of.call(raw(this), raw(search_element), from_index) !== -1) { w.state_proxy_equality_mismatch('Array.indexOf'); } } @@ -22,7 +22,7 @@ export function init_array_prototype_warnings() { array_prototype.lastIndexOf = function (search_element, from_index) { const index = original_last_index_of.call(this, search_element, from_index); if (index === -1) { - if (original_last_index_of.call(raw(this), search_element, from_index) !== -1) { + if (original_last_index_of.call(raw(this), raw(search_element), from_index) !== -1) { w.state_proxy_equality_mismatch('Array.lastIndexOf'); } } @@ -34,7 +34,7 @@ export function init_array_prototype_warnings() { array_prototype.includes = function (search_element, from_index) { const has = original_includes.call(this, search_element, from_index); if (!has) { - if (original_includes.call(raw(this), search_element, from_index)) { + if (original_includes.call(raw(this), raw(search_element), from_index)) { w.state_proxy_equality_mismatch('Array.includes'); } }