Lines Matching refs:promise
305 function trackPromise(promise, parent) { argument
306 if (promise[async_id_symbol]) {
315 promise[async_id_symbol] = newAsyncId();
316 promise[trigger_async_id_symbol] = triggerAsyncId;
319 function promiseInitHook(promise, parent) { argument
320 trackPromise(promise, parent);
321 const asyncId = promise[async_id_symbol];
322 const triggerAsyncId = promise[trigger_async_id_symbol];
323 emitInitScript(asyncId, 'PROMISE', triggerAsyncId, promise);
326 function promiseInitHookWithDestroyTracking(promise, parent) { argument
327 promiseInitHook(promise, parent);
328 destroyTracking(promise, parent);
333 function destroyTracking(promise, parent) { argument
334 trackPromise(promise, parent);
335 const asyncId = promise[async_id_symbol];
337 promise[destroyedSymbol] = destroyed;
338 registerDestroyHook(promise, asyncId, destroyed);
341 function promiseBeforeHook(promise) { argument
342 trackPromise(promise);
343 const asyncId = promise[async_id_symbol];
344 const triggerId = promise[trigger_async_id_symbol];
345 emitBeforeScript(asyncId, triggerId, promise);
348 function promiseAfterHook(promise) { argument
349 trackPromise(promise);
350 const asyncId = promise[async_id_symbol];
364 function promiseResolveHook(promise) { argument
365 trackPromise(promise);
366 const asyncId = promise[async_id_symbol];