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

Function addCleanup

lib/internal/bootstrap/switches/is_main_thread.js:145–149  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

143}
144
145function addCleanup(fn) {
146 if (isBuildingSnapshot()) {
147 addSerializeCallback(fn);
148 }
149}
150
151function getStdout() {
152 if (stdout) return stdout;

Callers 3

getStdoutFunction · 0.85
getStderrFunction · 0.85
getStdinFunction · 0.85

Calls 2

isBuildingSnapshotFunction · 0.85
addSerializeCallbackFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…