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

Function test

test/parallel/test-microtask-queue-integration.js:40–54  ·  view source on GitHub ↗
(scheduleMicrotask)

Source from the content-addressed store, hash-verified

38});
39
40function test(scheduleMicrotask) {
41 let nextTickCalled = false;
42 expected++;
43
44 scheduleMicrotask(common.mustCall(() => {
45 process.nextTick(function() {
46 nextTickCalled = true;
47 });
48
49 setTimeout(common.mustCall(() => {
50 assert(nextTickCalled);
51 done++;
52 }), 0);
53 }));
54}
55
56// first tick case
57implementations.forEach(test);

Callers

nothing calls this directly

Calls 2

setTimeoutFunction · 0.50
assertFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…