aboutsummaryrefslogtreecommitdiff
path: root/wasm/malloc_other.go
diff options
context:
space:
mode:
authorXe Iaso <me@xeiaso.net>2025-02-28 13:27:20 -0500
committerXe Iaso <me@xeiaso.net>2025-02-28 13:27:20 -0500
commit070566bce7cc37e12d3dee13fe8334f65341f55f (patch)
tree8a045c5cf4126be1a85f80fd7d77aa54f0af6064 /wasm/malloc_other.go
parent68276af76b25560fbe9df0fcd15f73242f4b2fab (diff)
downloadx-070566bce7cc37e12d3dee13fe8334f65341f55f.tar.xz
x-070566bce7cc37e12d3dee13fe8334f65341f55f.zip
wasm: basic String operations
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'wasm/malloc_other.go')
-rw-r--r--wasm/malloc_other.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/wasm/malloc_other.go b/wasm/malloc_other.go
new file mode 100644
index 0000000..5d915f8
--- /dev/null
+++ b/wasm/malloc_other.go
@@ -0,0 +1,7 @@
+//go:build !wasip1
+
+package wasm
+
+func Malloc(size uint32) Buffer {
+ panic("don't call this if you're not using WASI")
+}