()
| 59 | } |
| 60 | |
| 61 | function testPromise() { |
| 62 | assert.strictEqual(activeId, -1); |
| 63 | const res = new AsyncResource(resType); |
| 64 | assert.strictEqual(activeId, res.asyncId()); |
| 65 | res.emitDestroy(); |
| 66 | // Promise has higher prio than emit destroy |
| 67 | Promise.resolve().then(common.mustCall(() => { |
| 68 | assert.strictEqual(activeId, res.asyncId()); |
| 69 | })); |
| 70 | } |
| 71 | |
| 72 | async function testAwait() { |
| 73 | assert.strictEqual(activeId, -1); |
nothing calls this directly
no test coverage detected