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.
1 parent 670a680 commit 7a4c06cCopy full SHA for 7a4c06c
packages/svelte/src/internal/client/dev/equality.js
@@ -78,6 +78,8 @@ export function init_array_prototype_warnings() {
78
* @returns {boolean}
79
*/
80
export function strict_equals(a, b, equal = true) {
81
+ // try-catch needed because this tries to read properties of `a` and `b`,
82
+ // which could be disallowed for example in a secure context
83
try {
84
if ((a === b) !== (get_proxied_value(a) === get_proxied_value(b))) {
85
w.state_proxy_equality_mismatch(equal ? '===' : '!==');
0 commit comments