MCPcopy
hub / github.com/plasma-umass/browsix / abort

Function abort

src/ld.js:8534–8555  ·  view source on GitHub ↗
(what)

Source from the content-addressed store, hash-verified

8532var abortDecorators = [];
8533
8534function 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}
8556Module['abort'] = Module.abort = abort;
8557
8558// {{PRE_RUN_ADDITIONS}}

Callers 15

lookupImportFunction · 0.70
assertFunction · 0.70
setValueFunction · 0.70
getValueFunction · 0.70
abortOnCannotGrowMemoryFunction · 0.70
personalityChangedFunction · 0.70
___syscall191Function · 0.70
___syscall193Function · 0.70
___syscall192Function · 0.70
___syscall195Function · 0.70
___syscall194Function · 0.70
___syscall197Function · 0.70

Calls 1

stackTraceFunction · 0.70

Tested by

no test coverage detected