diff options
author | Anthony Pesch <inolen@gmail.com> | 2013-08-09 00:36:35 -0700 |
---|---|---|
committer | Anthony Pesch <inolen@gmail.com> | 2013-08-09 11:11:12 -0700 |
commit | a9bb2f0261fd88048d7e499df33808a23884cb02 (patch) | |
tree | 9fd6f9aebf7ca97f8220d914b2eecc20501f56f9 /src/preamble.js | |
parent | bd1d02e02cf0f39c8d7f672520910714d1c2d4e5 (diff) |
- always throw an exception in exit
- remove default exit status prints
- added EXITSTATUS global to enable exit callbacks to determine the status
Diffstat (limited to 'src/preamble.js')
-rw-r--r-- | src/preamble.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/preamble.js b/src/preamble.js index 585db832..95bf2dc2 100644 --- a/src/preamble.js +++ b/src/preamble.js @@ -241,6 +241,7 @@ var setjmpLabels = {}; #endif var ABORT = false; // whether we are quitting the application. no code should run after this. set in exit() and abort() +var EXITSTATUS = 0; var undef = 0; // tempInt is used for 32-bit signed values or smaller. tempBigInt is used |