aboutsummaryrefslogtreecommitdiff
path: root/core/os/errors_js.odin
diff options
context:
space:
mode:
Diffstat (limited to 'core/os/errors_js.odin')
-rw-r--r--core/os/errors_js.odin6
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