Skip to content

Is it ok to Module.callMain with ASYNCIFY? #18792

Answered by iliakan
iliakan asked this question in Q&A
Discussion options

You must be logged in to vote

I removed -O0, and now every await Module.ccall throws an exception:

Uncaught (in promise) ExitStatus {name: 'ExitStatus', message: 'Program terminated with exit(0)', status: 0}

Am I supposed to wrap every await Module.ccall into try/catch and silence such exceptions?

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
2 replies
@sbc100
Comment options

@iliakan
Comment options

Comment options

You must be logged in to vote
3 replies
@sbc100
Comment options

@sbc100
Comment options

@iliakan
Comment options

Answer selected by iliakan
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