MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / addAtExit

Function addAtExit

src/parseTools.mjs:840–844  ·  view source on GitHub ↗
(code)

Source from the content-addressed store, hash-verified

838// set. The code will be executed after the runtime `onExits` callbacks.
839export const ATEXITS = [];
840function addAtExit(code) {
841 if (EXIT_RUNTIME) {
842 ATEXITS.push(code);
843 }
844}
845
846// Add code to run after main and ATEXITS (if applicable). The code will be
847// executed after the runtime `onPostRuns` callbacks.

Callers 5

libtty.jsFile · 0.85
libwasi.jsFile · 0.85
libfs.jsFile · 0.85
libcore.jsFile · 0.85
libidbfs.jsFile · 0.85

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected