Replies: 1 comment
-
+1 to make it return -1 on failure. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Should
thread.spawn
be fallible, and return-1
on failure (similar tomemory.grow
)? It represents large allocations by the engine, such as the stack for the thread, and these allocations might fail. Do we want that failure to trap and kill the Wasm instance and everything else in the store, or do we want to return an error code and let Wasm recover?Beta Was this translation helpful? Give feedback.
All reactions