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/errors_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/errors_js.odin')
| -rw-r--r-- | core/os/errors_js.odin | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/core/os/errors_js.odin b/core/os/errors_js.odin index 34779807d..368b94d68 100644 --- a/core/os/errors_js.odin +++ b/core/os/errors_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. + _Platform_Error :: enum i32 {} _error_string :: proc(errno: i32) -> string { @@ -10,4 +14,4 @@ _error_string :: proc(errno: i32) -> string { _get_platform_error :: proc(errno: _Platform_Error) -> Error { return Platform_Error(errno) -} +}
\ No newline at end of file |