MCPcopy Create free account
hub / github.com/nodejs/node / add_test_done_callback

Function add_test_done_callback

deps/v8/test/wasm-js/third_party/testharness.js:2110–2118  ·  view source on GitHub ↗
(test, callback)

Source from the content-addressed store, hash-verified

2108 };
2109
2110 function add_test_done_callback(test, callback)
2111 {
2112 if (test.phase === test.phases.COMPLETE) {
2113 callback();
2114 return;
2115 }
2116
2117 test._done_callbacks.push(callback);
2118 }
2119
2120 /*
2121 * Invoke all specified cleanup functions. If one or more produce an error,

Callers 2

promise_testFunction · 0.70
testharness.jsFile · 0.70

Calls 2

callbackFunction · 0.50
pushMethod · 0.45

Tested by

no test coverage detected