-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
Ultron removes listeners not added with Ultron when the listener is the same.
const EventEmitter = require('events');
const assert = require('assert');
const Ultron = require('.');
function listener() {}
const ee = new EventEmitter();
const ultron = new Ultron(ee);
ee.on('foo', listener);
ultron.on('foo', listener);
ultron.remove('foo');
assert.strictEqual(ee.listenerCount('foo'), 1);
The issue has been indirectly reported by @apapirovski in nodejs/node#17440 (comment).
Metadata
Metadata
Assignees
Labels
No labels