(what)
| 13730 | var abortDecorators = []; |
| 13731 | |
| 13732 | function abort(what) { |
| 13733 | if (what !== undefined) { |
| 13734 | Module.print(what); |
| 13735 | Module.printErr(what); |
| 13736 | what = JSON.stringify(what) |
| 13737 | } else { |
| 13738 | what = ''; |
| 13739 | } |
| 13740 | |
| 13741 | ABORT = true; |
| 13742 | EXITSTATUS = 1; |
| 13743 | |
| 13744 | var extra = '\nIf this abort() is unexpected, build with -s ASSERTIONS=1 which can give more information.'; |
| 13745 | |
| 13746 | var output = 'abort(' + what + ') at ' + stackTrace() + extra; |
| 13747 | if (abortDecorators) { |
| 13748 | abortDecorators.forEach(function(decorator) { |
| 13749 | output = decorator(output, what); |
| 13750 | }); |
| 13751 | } |
| 13752 | throw output; |
| 13753 | } |
| 13754 | Module['abort'] = Module.abort = abort; |
| 13755 | |
| 13756 | // {{PRE_RUN_ADDITIONS}} |
no test coverage detected