aboutsummaryrefslogtreecommitdiff
path: root/src/zilch/App
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2026-10-19 15:14:01 +0200
committerNathan Reiner <nathan@nathanreiner.xyz>2026-10-19 15:16:33 +0200
commitbbd1364de53186af975ef1694fdc8451208ce626 (patch)
tree467e72f70b0fca12fb053618913ee247f7721137 /src/zilch/App
parent5b7b5c48e50d377b794dbbfc1c270ec6fd387e4b (diff)
zilch: make object calls type agnostic
Diffstat (limited to 'src/zilch/App')
-rw-r--r--src/zilch/App/object-store.js2
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') {