Skip to content

Commit 7a4c06c

Browse files
authored
Update packages/svelte/src/internal/client/dev/equality.js
1 parent 670a680 commit 7a4c06c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ export function init_array_prototype_warnings() {
7878
* @returns {boolean}
7979
*/
8080
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
8183
try {
8284
if ((a === b) !== (get_proxied_value(a) === get_proxied_value(b))) {
8385
w.state_proxy_equality_mismatch(equal ? '===' : '!==');

0 commit comments

Comments
 (0)