Skip to content

Commit 36171ab

Browse files
committed
use console.trace, like we do for ownership warnings
1 parent 22c1ddc commit 36171ab

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ export function init_array_prototype_warnings() {
1717
) !== -1
1818
) {
1919
w.state_proxy_equality_mismatch('Array.indexOf');
20+
21+
// eslint-disable-next-line no-console
22+
console.trace();
2023
}
2124
}
2225
return index;
@@ -35,6 +38,9 @@ export function init_array_prototype_warnings() {
3538
) !== -1
3639
) {
3740
w.state_proxy_equality_mismatch('Array.lastIndexOf');
41+
42+
// eslint-disable-next-line no-console
43+
console.trace();
3844
}
3945
}
4046
return index;
@@ -53,6 +59,9 @@ export function init_array_prototype_warnings() {
5359
)
5460
) {
5561
w.state_proxy_equality_mismatch('Array.includes');
62+
63+
// eslint-disable-next-line no-console
64+
console.trace();
5665
}
5766
}
5867
return has;
@@ -67,6 +76,9 @@ export function init_array_prototype_warnings() {
6776
export function strict_equals(a, b) {
6877
if (a !== b && get_proxied_value(a) === get_proxied_value(b)) {
6978
w.state_proxy_equality_mismatch('=== operator');
79+
80+
// eslint-disable-next-line no-console
81+
console.trace();
7082
}
7183

7284
return a === b;
@@ -80,6 +92,9 @@ export function strict_equals(a, b) {
8092
export function equals(a, b) {
8193
if (a != b && get_proxied_value(a) == get_proxied_value(b)) {
8294
w.state_proxy_equality_mismatch('== operator');
95+
96+
// eslint-disable-next-line no-console
97+
console.trace();
8398
}
8499

85100
return a == b;

0 commit comments

Comments
 (0)