You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The result of the function is non-nullable. Asyncify works by returning twice, that is, when we pause, we flow out of the function from the pause point, and when we resume we flow back to that point and then continue normally. But the first return must return a value, even if the outside will ignore it, and there is no non-nullable value we can emit. makeZero can't make a null for it, and makeUnreachable would just trap.
We should probably document this as a limitation of Asyncify, with the workaround that function returns must be nullable in functions that unwind, unless I'm missing something.
kripken
changed the title
assertion failure with --asyncify
Asyncify does not support unwinding from functions returning non-nullable values
Oct 8, 2024
Hi,
While testing some
wasm-opt
options for Wasocaml, I found the following assertion failure:I'm on a recent version:
It works without
--asyncify
.The binary file is attached, I don't have the text version sorry. I uploaded it as a
.jpeg
otherwise GitHub won't let me do it: .Thanks!
The text was updated successfully, but these errors were encountered: