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
If you start up many emscripten modules in an instance of node, each one adds the same uncaughtException handler and (in node <15) the same unhandledRejection warning. If you start up many modules it will cause a MaxListenersExceededWarning.
It would be better to use a global variable guard so that these are only added once. ex instanceof ExitStatus will only work for the one particular module because each ExitStatus class is distinct, for this changing the check to ex && ex.constructor && ex.constructor.name == "ExitStatus" would make one handler suffice for all Emscripten instances.