We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
strict_equals
STATE_SYMBOL
1 parent e9dc118 commit 670a680Copy full SHA for 670a680
.changeset/late-geckos-draw.md
@@ -0,0 +1,5 @@
1
+---
2
+'svelte': patch
3
4
+
5
+fix: try catch `strict_equals` to avoid error accessing `STATE_SYMBOL`
packages/svelte/src/internal/client/dev/equality.js
@@ -78,9 +78,11 @@ export function init_array_prototype_warnings() {
78
* @returns {boolean}
79
*/
80
export function strict_equals(a, b, equal = true) {
81
- if ((a === b) !== (get_proxied_value(a) === get_proxied_value(b))) {
82
- w.state_proxy_equality_mismatch(equal ? '===' : '!==');
83
- }
+ try {
+ if ((a === b) !== (get_proxied_value(a) === get_proxied_value(b))) {
+ w.state_proxy_equality_mismatch(equal ? '===' : '!==');
84
+ }
85
+ } catch {}
86
87
return (a === b) === equal;
88
}
0 commit comments