()
| 38 | } |
| 39 | |
| 40 | function testQueueMicrotask() { |
| 41 | assert.strictEqual(activeId, -1); |
| 42 | const res = new AsyncResource(resType); |
| 43 | assert.strictEqual(activeId, res.asyncId()); |
| 44 | res.emitDestroy(); |
| 45 | // queueMicrotask has higher prio than emit destroy |
| 46 | queueMicrotask(common.mustCall(() => |
| 47 | assert.strictEqual(activeId, res.asyncId())), |
| 48 | ); |
| 49 | } |
| 50 | |
| 51 | function testImmediate() { |
| 52 | assert.strictEqual(activeId, -1); |
nothing calls this directly
no test coverage detected
searching dependent graphs…