Skip to content

About error handling in custom module loader #849

Closed Answered by saghul
Icemic asked this question in Q&A
Discussion options

You must be logged in to vote

In addition, I noticed that in JS_LoadModuleInternal, we just check whether the module loader returns a NULL and go to fail without a JS_ThrowError.

The called function should be the one throwing the exception, then returning NULL.

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

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

Answer selected by Icemic
@Icemic
Comment options

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
Converted from issue

This discussion was converted from issue #848 on January 24, 2025 08:52.