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
is it right to return nullptr when some error occurs?
Yes, you should throw an exception and return NULL. I recently added some error handling for similar cases (when setting the meta object fails): ab48ede
And what about JSModuleNormalizeFunc?
Same thing. The default one can also fail in case of memory errors for example, and it will simply return NULL with the OOM exception thrown.
Activity
saghul commentedon Jan 24, 2025
Yes, you should throw an exception and return NULL. I recently added some error handling for similar cases (when setting the meta object fails): ab48ede
Same thing. The default one can also fail in case of memory errors for example, and it will simply return NULL with the OOM exception thrown.