Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
145
function
addCleanup(fn) {
146
if
(isBuildingSnapshot()) {
147
addSerializeCallback(fn);
148
}
149
}
150
151
function
getStdout() {
152
if
(stdout)
return
stdout;
Callers
3
getStdout
Function · 0.85
getStderr
Function · 0.85
getStdin
Function · 0.85
Calls
2
isBuildingSnapshot
Function · 0.85
addSerializeCallback
Function · 0.85
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…