Skip to content

Commit 85fe555

Browse files
committed
tune
1 parent a05ac0d commit 85fe555

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
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), raw(search_element), from_index) !== -1) {
13+
if (original_index_of.call(raw(this), 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), raw(search_element), from_index) !== -1) {
25+
if (original_last_index_of.call(raw(this), 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), raw(search_element), from_index)) {
37+
if (original_includes.call(raw(this), search_element, from_index)) {
3838
w.state_proxy_equality_mismatch('Array.includes');
3939
}
4040
}

packages/svelte/src/internal/client/dom/elements/bindings/input.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,10 @@ export function bind_group(inputs, group_index, input, get_value, update) {
9696
if (is_checkbox) {
9797
value = value || [];
9898
// @ts-ignore
99-
input.checked = raw(value).includes(raw(input.__value));
99+
input.checked = value.includes(input.__value);
100100
} else {
101101
// @ts-ignore
102-
input.checked = raw(input.__value) === raw(value);
102+
input.checked = input.__value === value;
103103
}
104104
});
105105

0 commit comments

Comments
 (0)