We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86e55de commit d36ab1fCopy full SHA for d36ab1f
test/parallel/test-eventtarget.js
@@ -458,9 +458,9 @@ ok(EventTarget);
458
// test NodeEventTarget async-iterability
459
const emitter = new NodeEventTarget();
460
const event = new Event('foo');
461
- const interval = setInterval(() => emitter.dispatchEvent(event));
+ const interval = setInterval(() => emitter.dispatchEvent(event), 0);
462
let count = 0;
463
- for await(const [ item ] of on(emitter, 'foo')) {
+ for await (const [ item ] of on(emitter, 'foo')) {
464
count++;
465
strictEqual(item.type, 'foo');
466
if (count > 5) {
0 commit comments