Lines Matching +full:require +full:- +full:common +full:- +full:first
17 // invocations until then, including the "init" and "before" of the first
19 // However afterwards it collects all invocations that follow on the first
48 // - setting up first Immediate
49 // hook1.init.uid-5
50 // hook3.init.uid-5
51 // - finished setting first Immediate
53 // hook1.before.uid-5
54 // hook3.before.uid-5
55 // - enabled hook2
56 // - entering onfirstImmediate
58 // - setting up second Immediate
59 // hook1.init.uid-6
60 // hook3.init.uid-6
61 // hook2.init.uid-6
62 // - finished setting second Immediate
64 // - exiting onfirstImmediate
65 // hook1.after.uid-5
66 // hook3.after.uid-5
67 // hook2.after.uid-5
68 // hook1.destroy.uid-5
69 // hook3.destroy.uid-5
70 // hook2.destroy.uid-5
71 // hook1.before.uid-6
72 // hook3.before.uid-6
73 // hook2.before.uid-6
74 // - disabled hook1
75 // - entering onsecondImmediate
76 // - exiting onsecondImmediate
77 // hook3.after.uid-6
78 // - disabled hook3
79 // hook2.after.uid-6
80 // hook2.destroy.uid-6
85 const common = require('../common'); constant
86 const assert = require('assert');
87 const tick = require('../common/tick');
88 const initHooks = require('./init-hooks');
89 const { checkInvocations } = require('./hook-checks');
91 if (!common.isMainThread)
92 common.skip('Worker bootstrapping works differently -> different timing');
95 // the type of the first Immediate since it will miss its `init` invocation.
140 if (!--count) {
145 setImmediate(common.mustCall(onfirstImmediate));
167 'hook1[0]: on first immediate');
169 'hook3[0]: on first immediate');
173 setImmediate(common.mustCall(onsecondImmediate));
199 // "after" of the first which is why they are ordered the opposite way