diff --git a/packages/svelte/src/internal/client/proxy.js b/packages/svelte/src/internal/client/proxy.js index 5ecc02352e..6c9cc39973 100644 --- a/packages/svelte/src/internal/client/proxy.js +++ b/packages/svelte/src/internal/client/proxy.js @@ -28,7 +28,7 @@ export function proxy(value) { * @returns {T} */ function wrap(value, parent) { - if (value && typeof value === 'object' && !(STATE_SYMBOL in value)) { + if (typeof value === 'object' && value != null && !(STATE_SYMBOL in value)) { const prototype = get_prototype_of(value); // TODO handle Map and Set as well