Skip to content

JSPI-enabled emscripten_sleep() gets "invalid suspender object for suspend" error #20407

Answered by brendandahl
rentallect asked this question in Q&A
Discussion options

You must be logged in to vote

This is likely because the wasm export that eventually lead to the call of sleep did not have JSPI applied. Can you see on the call stack where wasm was entered from JS? That function should be ASYNCIFY_EXPORTS in your build command.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rentallect
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants