Lines Matching +full:hook +full:- +full:run +full:- +full:in +full:- +full:context
68 throw new ERR_ASYNC_CALLBACK('hook.init');
70 throw new ERR_ASYNC_CALLBACK('hook.before');
72 throw new ERR_ASYNC_CALLBACK('hook.after');
74 throw new ERR_ASYNC_CALLBACK('hook.destroy');
76 throw new ERR_ASYNC_CALLBACK('hook.promiseResolve');
86 // The set of callbacks for a hook should be the same regardless of whether
87 // enable()/disable() are run during their execution. The following
88 // references are reassigned to the tmp arrays if a hook is currently being
92 // Each hook is only allowed to be added once.
122 if (index === -1)
127 hook_fields[kTotals] = hook_fields[kInit] -= +!!this[init_symbol];
128 hook_fields[kTotals] += hook_fields[kBefore] -= +!!this[before_symbol];
129 hook_fields[kTotals] += hook_fields[kAfter] -= +!!this[after_symbol];
130 hook_fields[kTotals] += hook_fields[kDestroy] -= +!!this[destroy_symbol];
132 hook_fields[kPromiseResolve] -= +!!this[promise_resolve_symbol];
167 if (!NumberIsSafeInteger(triggerAsyncId) || triggerAsyncId < -1) {
245 return (new AsyncResource(type || 'bound-anonymous-fn')).bind(fn);
269 // If this.enabled, the instance must be in storageList
286 // Propagate the context from a parent resource to a child one
300 run(store, callback, ...args) { method in AsyncLocalStorage