Lines Matching refs:asyncId
17 // Either 'before' or 'after' AND asyncId must be present in the other map
29 function oninit(asyncId, type) {
31 promisesInitState.set(asyncId, 'inited');
35 function onbefore(asyncId) {
36 if (!promisesInitState.has(asyncId)) {
39 promisesExecutionState.set(asyncId, 'before');
42 function onafter(asyncId) {
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) {
57 assert(promisesInitState.has(asyncId),
60 promisesInitState.set(asyncId, 'resolved');