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

Function onClose

test/parallel/test-repl-programmatic-history-setup-history.js:264–275  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

262 });
263
264 function onClose() {
265 const cleaned = clean === false ? false : cleanupTmpFile();
266
267 try {
268 // Ensure everything that we expected was output
269 assert.strictEqual(expected.length, 0);
270 setImmediate(runTestWrap, cleaned);
271 } catch (err) {
272 console.error(`Failed test # ${numtests - tests.length}`);
273 throw err;
274 }
275 }
276
277 repl.inputStream.run(test);
278 }

Callers 3

runTestFunction · 0.70
runTestFunction · 0.70
onHistoryFileLoadedFunction · 0.70

Calls 3

cleanupTmpFileFunction · 0.70
setImmediateFunction · 0.50
errorMethod · 0.45

Tested by

no test coverage detected