docs: add explanatory comments to empty catch blocks (#17651)

* docs: add explanatory comments to empty catch blocks

* Update equality.js

* Refactor error handling in inspect.js

Simplified error handling in render_effect.

* Update inspect.js

* Update packages/svelte/src/internal/client/dev/console-log.js

---------

Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
pull/16867/merge
Mohit Kourav 6 months ago committed by GitHub
parent 0a404c9863
commit 67c4a38117
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -28,7 +28,9 @@ export function log_if_contains_state(method, ...objects) {
// eslint-disable-next-line no-console
console.log('%c[snapshot]', 'color: grey', ...transformed);
}
} catch {}
} catch {
// Errors can occur when trying to snapshot objects with getters that throw or non-enumerable properties.
}
});
return objects;

Loading…
Cancel
Save