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

Function resetForSerialization

lib/internal/process/warning.js:31–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29let traceWarningHelperShown = false;
30
31function resetForSerialization() {
32 if (fd !== undefined) {
33 process.removeListener('exit', closeFdOnExit);
34 }
35 fd = undefined;
36 warningFile = undefined;
37 traceWarningHelperShown = false;
38}
39
40function lazyOption() {
41 // This will load `warningFile` only once. If the flag is not set,

Callers 1

setupWarningHandlerFunction · 0.85

Calls 1

removeListenerMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…