added: stub `__poll` to JS platform
authorBrendan Hansen <brendan.f.hansen@gmail.com>
Wed, 18 Oct 2023 14:07:10 +0000 (09:07 -0500)
committerBrendan Hansen <brendan.f.hansen@gmail.com>
Wed, 18 Oct 2023 14:07:10 +0000 (09:07 -0500)
core/runtime/platform/js/platform.onyx

index 5f4d560433984e2ca47fa068ccca13bfae1fa2eb..ebb280f58c99c35ac770f0155840c70bcf1e7e84 100644 (file)
@@ -45,6 +45,12 @@ __futex_wake :: (addr: rawptr, maximum: i32) -> i32 {
     __atomic_notify(addr, maximum);
 }
 
+PollDescription :: struct {
+    fd: i32;
+    in, out: io.PollEvent;
+}
+__poll :: (fds: [] PollDescription, timeout := -1) {}
+
 // Sets up everything needed for execution.
 __start :: () {
     __runtime_initialize();