Skip to content

Commit 6cb451d

Browse files
committed
tune
1 parent a06017c commit 6cb451d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/svelte/src/internal/client/dev/equality.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export function init_array_prototype_warnings() {
1010
array_prototype.indexOf = function (search_element, from_index) {
1111
const index = original_index_of.call(this, search_element, from_index);
1212
if (index === -1) {
13-
if (original_index_of.call(raw(this), search_element, from_index) !== -1) {
13+
if (original_index_of.call(raw(this), raw(search_element), from_index) !== -1) {
1414
w.state_proxy_equality_mismatch('Array.indexOf');
1515
}
1616
}
@@ -22,7 +22,7 @@ export function init_array_prototype_warnings() {
2222
array_prototype.lastIndexOf = function (search_element, from_index) {
2323
const index = original_last_index_of.call(this, search_element, from_index);
2424
if (index === -1) {
25-
if (original_last_index_of.call(raw(this), search_element, from_index) !== -1) {
25+
if (original_last_index_of.call(raw(this), raw(search_element), from_index) !== -1) {
2626
w.state_proxy_equality_mismatch('Array.lastIndexOf');
2727
}
2828
}
@@ -34,7 +34,7 @@ export function init_array_prototype_warnings() {
3434
array_prototype.includes = function (search_element, from_index) {
3535
const has = original_includes.call(this, search_element, from_index);
3636
if (!has) {
37-
if (original_includes.call(raw(this), search_element, from_index)) {
37+
if (original_includes.call(raw(this), raw(search_element), from_index)) {
3838
w.state_proxy_equality_mismatch('Array.includes');
3939
}
4040
}

0 commit comments

Comments
 (0)