Lines Matching defs:const
3 const {
11 const { setPromiseHooks } = internalBinding('async_wrap');
12 const { triggerUncaughtException } = internalBinding('errors');
14 const { kEmptyObject } = require('internal/util');
15 const { validatePlainFunction } = require('internal/validators');
17 const hooks = {
25 const hookSet = ArrayPrototypeSlice(hooks.init);
26 const exceptions = [];
29 const init = hookSet[i];
39 const err = exceptions[i];
46 const hookSet = ArrayPrototypeSlice(list);
47 const exceptions = [];
50 const hook = hookSet[i];
60 const err = exceptions[i];
66 const beforeAll = makeRunHook(hooks.before);
67 const afterAll = makeRunHook(hooks.after);
68 const settledAll = makeRunHook(hooks.settled);
75 const init = maybeFastPath(hooks.init, initAll);
76 const before = maybeFastPath(hooks.before, beforeAll);
77 const after = maybeFastPath(hooks.after, afterAll);
78 const settled = maybeFastPath(hooks.settled, settledAll);
83 const index = ArrayPrototypeIndexOf(list, hook);
91 const list = hooks[name];
100 const onInit = makeUseHook('init');
101 const onBefore = makeUseHook('before');
102 const onAfter = makeUseHook('after');
103 const onSettled = makeUseHook('settled');
106 const hooks = [];
114 for (const stop of hooks) {