Lines Matching refs:asyncId
29 function oninit(asyncId, type) { argument
31 promisesInitState.set(asyncId, 'inited');
35 function onbefore(asyncId) { argument
36 if (!promisesInitState.has(asyncId)) {
39 promisesExecutionState.set(asyncId, 'before');
42 function onafter(asyncId) { argument
43 if (!promisesInitState.has(asyncId)) {
47 assert.strictEqual(promisesExecutionState.get(asyncId), 'before',
50 assert.strictEqual(promisesInitState.get(asyncId), 'resolved',
53 promisesExecutionState.set(asyncId, 'after');
56 function onpromiseResolve(asyncId) { argument
57 assert(promisesInitState.has(asyncId),
60 promisesInitState.set(asyncId, 'resolved');