diff options
author | Anthony Pesch <inolen@gmail.com> | 2013-07-29 16:03:01 -0700 |
---|---|---|
committer | Anthony Pesch <inolen@gmail.com> | 2013-07-29 21:35:02 -0700 |
commit | 908e87a0a6fa87c03108b627ee85592922b778fa (patch) | |
tree | 734d00002b2bc9ff9b34fca2abe550700906fa3d /src/preamble.js | |
parent | 9987b9a039052cb84f33127e5b2c3df58f349d7c (diff) |
- remove code that attempts to propogate _main's exit status through returns. we can't rely on that, the status must be signaled through an event to support both sync / async applications.
- consolidate exit functionality
- moved exitRuntime to callMain
Diffstat (limited to 'src/preamble.js')
-rw-r--r-- | src/preamble.js | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/preamble.js b/src/preamble.js index 218e0388..f1a0de4c 100644 --- a/src/preamble.js +++ b/src/preamble.js @@ -242,12 +242,6 @@ var tempI64, tempI64b; var tempRet0, tempRet1, tempRet2, tempRet3, tempRet4, tempRet5, tempRet6, tempRet7, tempRet8, tempRet9; #endif -function abort(text) { - Module.print(text + ':\n' + (new Error).stack); - ABORT = true; - throw "Assertion: " + text; -} - function assert(condition, text) { if (!condition) { abort('Assertion failed: ' + text); |