(what)
| 8532 | var abortDecorators = []; |
| 8533 | |
| 8534 | function abort(what) { |
| 8535 | if (what !== undefined) { |
| 8536 | Module.print(what); |
| 8537 | Module.printErr(what); |
| 8538 | what = JSON.stringify(what) |
| 8539 | } else { |
| 8540 | what = ''; |
| 8541 | } |
| 8542 | |
| 8543 | ABORT = true; |
| 8544 | EXITSTATUS = 1; |
| 8545 | |
| 8546 | var extra = '\nIf this abort() is unexpected, build with -s ASSERTIONS=1 which can give more information.'; |
| 8547 | |
| 8548 | var output = 'abort(' + what + ') at ' + stackTrace() + extra; |
| 8549 | if (abortDecorators) { |
| 8550 | abortDecorators.forEach(function(decorator) { |
| 8551 | output = decorator(output, what); |
| 8552 | }); |
| 8553 | } |
| 8554 | throw output; |
| 8555 | } |
| 8556 | Module['abort'] = Module.abort = abort; |
| 8557 | |
| 8558 | // {{PRE_RUN_ADDITIONS}} |
no test coverage detected