diff options
| author | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2026-02-12 12:02:11 +0100 |
|---|---|---|
| committer | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2026-02-12 12:12:21 +0100 |
| commit | 658e6b9d9fabe0b249f552257fe8918b010003b0 (patch) | |
| tree | b3e66caa49222e878e5c4a6124433a6513a069d4 /core/os/heap_js.odin | |
| parent | 97683ae0146e6668d56e701c1d54a4e1737e41c8 (diff) | |
Add `core:log` support for js/wasm
Also add #panic when importing `core:os` on wasm.
Diffstat (limited to 'core/os/heap_js.odin')
| -rw-r--r-- | core/os/heap_js.odin | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/core/os/heap_js.odin b/core/os/heap_js.odin index 5f8d9bd35..ebc8f902d 100644 --- a/core/os/heap_js.odin +++ b/core/os/heap_js.odin @@ -2,6 +2,10 @@ #+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 +_heap_allocator_proc :: runtime.wasm_allocator_proc
\ No newline at end of file |