aboutsummaryrefslogtreecommitdiff
path: root/core/os/stat_js.odin
diff options
context:
space:
mode:
authorJeroen van Rijn <Kelimion@users.noreply.github.com>2026-02-12 12:02:11 +0100
committerJeroen van Rijn <Kelimion@users.noreply.github.com>2026-02-12 12:12:21 +0100
commit658e6b9d9fabe0b249f552257fe8918b010003b0 (patch)
treeb3e66caa49222e878e5c4a6124433a6513a069d4 /core/os/stat_js.odin
parent97683ae0146e6668d56e701c1d54a4e1737e41c8 (diff)
Add `core:log` support for js/wasm
Also add #panic when importing `core:os` on wasm.
Diffstat (limited to 'core/os/stat_js.odin')
-rw-r--r--core/os/stat_js.odin4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/os/stat_js.odin b/core/os/stat_js.odin
index bad75486b..a304435d9 100644
--- a/core/os/stat_js.odin
+++ b/core/os/stat_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"
_fstat :: proc(f: ^File, allocator: runtime.Allocator) -> (fi: File_Info, err: Error) {