Lines Matching +full:hook +full:- +full:run +full:- +full:in +full:- +full:context
62 throw new ERR_ASYNC_CALLBACK('hook.init');
64 throw new ERR_ASYNC_CALLBACK('hook.before');
66 throw new ERR_ASYNC_CALLBACK('hook.after');
68 throw new ERR_ASYNC_CALLBACK('hook.destroy');
70 throw new ERR_ASYNC_CALLBACK('hook.promiseResolve');
80 // The set of callbacks for a hook should be the same regardless of whether
81 // enable()/disable() are run during their execution. The following
82 // references are reassigned to the tmp arrays if a hook is currently being
86 // Each hook is only allowed to be added once.
114 if (index === -1)
119 hook_fields[kTotals] = hook_fields[kInit] -= +!!this[init_symbol];
120 hook_fields[kTotals] += hook_fields[kBefore] -= +!!this[before_symbol];
121 hook_fields[kTotals] += hook_fields[kAfter] -= +!!this[after_symbol];
122 hook_fields[kTotals] += hook_fields[kDestroy] -= +!!this[destroy_symbol];
124 hook_fields[kPromiseResolve] -= +!!this[promise_resolve_symbol];
159 if (!NumberIsSafeInteger(triggerAsyncId) || triggerAsyncId < -1) {
238 return (new AsyncResource(type || 'bound-anonymous-fn')).bind(fn);
263 // If this.enabled, the instance must be in storageList
279 // Propagate the context from a parent resource to a child one
293 run(store, callback, ...args) { method in AsyncLocalStorage
301 // It is ok because emitDestroy only schedules calling the hook