(status)
| 5922 | Module['run'] = Module.run = run; |
| 5923 | |
| 5924 | function exit(status) { |
| 5925 | ABORT = true; |
| 5926 | EXITSTATUS = status; |
| 5927 | STACKTOP = initialStackTop; |
| 5928 | |
| 5929 | // exit the runtime |
| 5930 | exitRuntime(); |
| 5931 | |
| 5932 | // TODO We should handle this differently based on environment. |
| 5933 | // In the browser, the best we can do is throw an exception |
| 5934 | // to halt execution, but in node we could process.exit and |
| 5935 | // I'd imagine SM shell would have something equivalent. |
| 5936 | // This would let us set a proper exit status (which |
| 5937 | // would be great for checking test exit statuses). |
| 5938 | // https://github.com/kripken/emscripten/issues/1371 |
| 5939 | |
| 5940 | // throw an exception to halt the current execution |
| 5941 | throw new ExitStatus(status); |
| 5942 | } |
| 5943 | Module['exit'] = Module.exit = exit; |
| 5944 | |
| 5945 | function abort(text) { |
no test coverage detected
searching dependent graphs…