(what)
| 8438 | var abortDecorators = []; |
| 8439 | |
| 8440 | function abort(what) { |
| 8441 | if (what !== undefined) { |
| 8442 | Module.print(what); |
| 8443 | Module.printErr(what); |
| 8444 | what = JSON.stringify(what) |
| 8445 | } else { |
| 8446 | what = ''; |
| 8447 | } |
| 8448 | |
| 8449 | ABORT = true; |
| 8450 | EXITSTATUS = 1; |
| 8451 | |
| 8452 | var extra = '\nIf this abort() is unexpected, build with -s ASSERTIONS=1 which can give more information.'; |
| 8453 | |
| 8454 | var output = 'abort(' + what + ') at ' + stackTrace() + extra; |
| 8455 | if (abortDecorators) { |
| 8456 | abortDecorators.forEach(function(decorator) { |
| 8457 | output = decorator(output, what); |
| 8458 | }); |
| 8459 | } |
| 8460 | throw output; |
| 8461 | } |
| 8462 | Module['abort'] = Module.abort = abort; |
| 8463 | |
| 8464 | // {{PRE_RUN_ADDITIONS}} |
no test coverage detected