Lines Matching defs:const

3 const {
11 const async_wrap = internalBinding('async_wrap');
12 const { setCallbackTrampoline } = async_wrap;
38 const {
48 const {
57 const active_hooks = {
59 // fires. Using var instead of (preferably const) in order to assign
80 const { registerDestroyHook } = async_wrap;
81 const { enqueueMicrotask } = internalBinding('task_queue');
82 const { resource_symbol, owner_symbol } = internalBinding('symbols');
87 const {
93 const { async_id_symbol,
100 const init_symbol = Symbol('init');
101 const before_symbol = Symbol('before');
102 const after_symbol = Symbol('after');
103 const destroy_symbol = Symbol('destroy');
104 const promise_resolve_symbol = Symbol('promiseResolve');
105 const emitBeforeNative = emitHookFactory(before_symbol, 'emitBeforeNative');
106 const emitAfterNative = emitHookFactory(after_symbol, 'emitAfterNative');
107 const emitDestroyNative = emitHookFactory(destroy_symbol, 'emitDestroyNative');
108 const emitPromiseResolveNative =
117 const index = async_hook_fields[kStackLength] - 1;
138 const topLevelResource = {};
146 const index = async_hook_fields[kStackLength] - 1;
148 const resource = execution_async_resources[index] ||
163 const o = inspectExceptionValue(e);
168 const { getOptionValue } = require('internal/options');
179 const publicResource = resource[resource_symbol];
252 const fn = emitHook.bind(undefined, symbol);
311 const triggerAsyncId = parent ? getOrSetAsyncId(parent) :
320 const asyncId = promise[async_id_symbol];
321 const triggerAsyncId = promise[trigger_async_id_symbol];
332 const asyncId = promise[async_id_symbol];
338 const asyncId = promise[async_id_symbol];
339 const triggerId = promise[trigger_async_id_symbol];
345 const asyncId = promise[async_id_symbol];
361 const asyncId = promise[async_id_symbol];
383 const promiseHooks = require('internal/promise_hooks');
432 const defaultTriggerAsyncId = async_id_fields[kDefaultTriggerAsyncId];
458 const oldDefaultTriggerAsyncId = async_id_fields[kDefaultTriggerAsyncId];
538 const offset = async_hook_fields[kStackLength];
552 const stackLength = async_hook_fields[kStackLength];
560 const offset = stackLength - 1;