MCPcopy
hub / github.com/jvilk/BrowserFS / abort

Function abort

test/tests/emscripten/nop.js:8440–8461  ·  view source on GitHub ↗
(what)

Source from the content-addressed store, hash-verified

8438var abortDecorators = [];
8439
8440function 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}
8462Module['abort'] = Module.abort = abort;
8463
8464// {{PRE_RUN_ADDITIONS}}

Callers 12

assertFunction · 0.70
setValueFunction · 0.70
getValueFunction · 0.70
abortOnCannotGrowMemoryFunction · 0.70
___syscall6Function · 0.70
_sbrkFunction · 0.70
___syscall140Function · 0.70
___syscall146Function · 0.70
___syscall54Function · 0.70
b1Function · 0.70
b0Function · 0.70
b2Function · 0.70

Calls 1

stackTraceFunction · 0.70

Tested by

no test coverage detected