Files
Odin/core/os/heap_js.odin
Jeroen van Rijn 658e6b9d9f Add core:log support for js/wasm
Also add #panic when importing `core:os` on wasm.
2026-02-12 12:12:21 +01:00

11 lines
300 B
Odin

#+build js wasm32, js wasm64p32
#+private
package os
// None of this does anything on js/wasm.
// It's only here so importing `core:os` on wasm panics cleanly,
// without spamming about all sorts of missing procs and types.
import "base:runtime"
_heap_allocator_proc :: runtime.wasm_allocator_proc