fix: ensure $inspect.trace works correctly with null values (#14853)

* fix: ensure $inspect.trace works correctly with null values

* fix: ensure $inspect.trace works correctly with null values
pull/14862/head
Dominic Gannaway 4 weeks ago committed by GitHub
parent 7f8acb8a37
commit 32348a5387
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -0,0 +1,5 @@
---
'svelte': patch
---
fix: ensure $inspect.trace works correctly with null values

@ -51,7 +51,9 @@ function log_entry(signal, entry) {
status !== 'clean'
? 'color: CornflowerBlue; font-weight: bold'
: 'color: grey; font-weight: bold',
typeof value === 'object' && STATE_SYMBOL in value ? snapshot(value, true) : value
typeof value === 'object' && value !== null && STATE_SYMBOL in value
? snapshot(value, true)
: value
);
if (type === '$derived') {

Loading…
Cancel
Save