Closed fabriziobertocci closed 8 years ago
This seems to be a side effect of the following code that emscripten
adds:
process['on']('uncaughtException', function(ex) {
// suppress ExitStatus exceptions from showing an error
if (!(ex instanceof ExitStatus)) {
throw ex;
}
});
It doesn't seem to be configurable, so it's not really within control of this project.
Hmm thanks for finding the culprit. That's unfortunate you can't remove an uncaughtException handler (or at least I did not find the way to do it).
That's unfortunate you can't remove an uncaughtException handler (or at least I did not find the way to do it).
I'm curious what harm it's causing you.
No harm at all... it's just annoying, especially when you do development. But understand it's emscriptem that's installing the devilish uncaughtException... I guess we can close the ticket.
This problem occur only when invoking a script from a file, and does not show when invoking node interactively.
Suppose you have a javascript file (i.e. named '
undefTest.js
') with an error inside (i.e. calling an undefined function):If you launch it:
But suppose in this
undefTest.js
you load lua.vm.js before invoking the undefined function:Now, when launching it, node shows some different error message generated by lua.vm.js: