()
| 296 | const i = setInterval(() => ee.emit('foo', 'foo'), 10); |
| 297 | |
| 298 | async function foo() { |
| 299 | for await (const f of on(ee, 'foo', { signal: ac.signal })) { |
| 300 | assert.strictEqual(f, 'foo'); |
| 301 | } |
| 302 | } |
| 303 | |
| 304 | foo().catch(common.mustCall((error) => { |
| 305 | assert.strictEqual(error.name, 'AbortError'); |
no test coverage detected