MCPcopy Index your code
hub / github.com/sql-js/sql.js / abort

Function abort

js/sql-debug.js:403787–403812  ·  view source on GitHub ↗
(what)

Source from the content-addressed store, hash-verified

403785var abortDecorators = [];
403786
403787function abort(what) {
403788 if (Module['onAbort']) {
403789 Module['onAbort'](what);
403790 }
403791
403792 if (what !== undefined) {
403793 Module.print(what);
403794 Module.printErr(what);
403795 what = JSON.stringify(what)
403796 } else {
403797 what = '';
403798 }
403799
403800 ABORT = true;
403801 EXITSTATUS = 1;
403802
403803 var extra = '\nIf this abort() is unexpected, build with -s ASSERTIONS=1 which can give more information.';
403804
403805 var output = 'abort(' + what + ') at ' + stackTrace() + extra;
403806 if (abortDecorators) {
403807 abortDecorators.forEach(function(decorator) {
403808 output = decorator(output, what);
403809 });
403810 }
403811 throw output;
403812}
403813Module['abort'] = abort;
403814
403815// {{PRE_RUN_ADDITIONS}}

Callers 15

assertFunction · 0.70
setValueFunction · 0.70
getValueFunction · 0.70
abortOnCannotGrowMemoryFunction · 0.70
___syscall10Function · 0.70
___syscall118Function · 0.70
___syscall140Function · 0.70
___syscall15Function · 0.70
___syscall183Function · 0.70
___syscall192Function · 0.70
___syscall194Function · 0.70
___syscall195Function · 0.70

Calls 1

stackTraceFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…