Lines Matching refs:ee
7 const ee = new EventEmitter(); constant
10 assert.deepStrictEqual(ee.eventNames(), []);
12 assert.strictEqual(ee._events.hasOwnProperty, undefined);
13 assert.strictEqual(ee._events.toString, undefined);
15 ee.on('__proto__', handler);
16 ee.on('__defineGetter__', handler);
17 ee.on('toString', handler);
19 assert.deepStrictEqual(ee.eventNames(), [
25 assert.deepStrictEqual(ee.listeners('__proto__'), [handler]);
26 assert.deepStrictEqual(ee.listeners('__defineGetter__'), [handler]);
27 assert.deepStrictEqual(ee.listeners('toString'), [handler]);
29 ee.on('__proto__', common.mustCall(function(val) {
32 ee.emit('__proto__', 1);