diff options
Diffstat (limited to 'src/library.js')
-rw-r--r-- | src/library.js | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/library.js b/src/library.js index aebad63b..3ee6f505 100644 --- a/src/library.js +++ b/src/library.js @@ -2061,24 +2061,19 @@ LibraryManager.library = { // void _exit(int status); // http://pubs.opengroup.org/onlinepubs/000095399/functions/exit.html -#if CATCH_EXIT_CODE function ExitStatus() { this.name = "ExitStatus"; this.message = "Program terminated with exit(" + status + ")"; this.status = status; + Module.print('Exit Status: ' + status); }; ExitStatus.prototype = new Error(); ExitStatus.prototype.constructor = ExitStatus; -#endif exitRuntime(); ABORT = true; -#if CATCH_EXIT_CODE throw new ExitStatus(); -#else - throw 'exit(' + status + ') called, at ' + new Error().stack; -#endif }, fork__deps: ['__setErrNo', '$ERRNO_CODES'], fork: function() { |