diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2026-10-19 15:14:01 +0200 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2026-10-19 15:16:33 +0200 |
| commit | bbd1364de53186af975ef1694fdc8451208ce626 (patch) | |
| tree | 467e72f70b0fca12fb053618913ee247f7721137 /src/zilch/App | |
| parent | 5b7b5c48e50d377b794dbbfc1c270ec6fd387e4b (diff) | |
zilch: make object calls type agnostic
Diffstat (limited to 'src/zilch/App')
| -rw-r--r-- | src/zilch/App/object-store.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/zilch/App/object-store.js b/src/zilch/App/object-store.js index 6699c41..9a68478 100644 --- a/src/zilch/App/object-store.js +++ b/src/zilch/App/object-store.js @@ -90,6 +90,8 @@ class ObjectStore { } static writeValue(ptr, value) { + if (ptr === 0) return; + const mem = new DataView(wasm.memory.buffer, ptr); if (typeof value === 'object' || typeof value === 'function') { |