diff options
Diffstat (limited to 'core/os/pipe_js.odin')
| -rw-r--r-- | core/os/pipe_js.odin | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/core/os/pipe_js.odin b/core/os/pipe_js.odin index aea5e9a83..5e724ea00 100644 --- a/core/os/pipe_js.odin +++ b/core/os/pipe_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. + _pipe :: proc() -> (r, w: ^File, err: Error) { err = .Unsupported return @@ -11,4 +15,4 @@ _pipe :: proc() -> (r, w: ^File, err: Error) { _pipe_has_data :: proc(r: ^File) -> (ok: bool, err: Error) { err = .Unsupported return -} +}
\ No newline at end of file |