MCPcopy Index your code
hub / github.com/nodejs/node / exit

Function exit

deps/v8/test/mjsunit/asm/embenchen/copy.js:5924–5942  ·  view source on GitHub ↗
(status)

Source from the content-addressed store, hash-verified

5922Module['run'] = Module.run = run;
5923
5924function exit(status) {
5925 ABORT = true;
5926 EXITSTATUS = status;
5927 STACKTOP = initialStackTop;
5928
5929 // exit the runtime
5930 exitRuntime();
5931
5932 // TODO We should handle this differently based on environment.
5933 // In the browser, the best we can do is throw an exception
5934 // to halt execution, but in node we could process.exit and
5935 // I'd imagine SM shell would have something equivalent.
5936 // This would let us set a proper exit status (which
5937 // would be great for checking test exit statuses).
5938 // https://github.com/kripken/emscripten/issues/1371
5939
5940 // throw an exception to halt the current execution
5941 throw new ExitStatus(status);
5942}
5943Module['exit'] = Module.exit = exit;
5944
5945function abort(text) {

Callers 15

copy.jsFile · 0.70
dump-cpp.pyFile · 0.50
SetupReportGroupsFunction · 0.50
MainFunction · 0.50
mainFunction · 0.50
avg.pyFile · 0.50
traverseMethod · 0.50
generate.pyFile · 0.50
build_and_checkFunction · 0.50

Calls 1

exitRuntimeFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…