JSPI-enabled emscripten_sleep() gets "invalid suspender object for suspend" error #20407
-
I am using emscripten At runtime, when the Can someone give me some clues regarding what I might be neglecting to do to make this |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
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 |
Beta Was this translation helpful? Give feedback.
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.