/third_party/typescript/tests/baselines/reference/ |
D | importDeclFromTypeNodeInJsSource.types | 7 namespace EventEmitter { 8 >EventEmitter : typeof EventEmitter 10 class EventEmitter { 11 >EventEmitter : EventEmitter 16 export = EventEmitter; 17 >EventEmitter : typeof EventEmitter 63 import { EventEmitter } from 'events'; 64 >EventEmitter : typeof EventEmitter 73 export class Foo extends EventEmitter { 75 >EventEmitter : EventEmitter
|
D | fatArrowSelf.js | 6 export class EventEmitter { 14 constructor (private emitter: Events.EventEmitter) { } argument 30 var EventEmitter = /** @class */ (function () { class 31 function EventEmitter() { class in anonymousFunction5bd837ca0100.EventEmitter 33 EventEmitter.prototype.addListener = function (type, listener) { class 35 return EventEmitter; 37 Events.EventEmitter = EventEmitter;
|
D | importDeclFromTypeNodeInJsSource.symbols | 7 namespace EventEmitter { 8 >EventEmitter : Symbol(EventEmitter, Decl(events.d.ts, 0, 25)) 10 class EventEmitter { 11 >EventEmitter : Symbol(EventEmitter, Decl(events.d.ts, 1, 28)) 16 export = EventEmitter; 17 >EventEmitter : Symbol(EventEmitter, Decl(events.d.ts, 0, 25)) 63 import { EventEmitter } from 'events'; 64 >EventEmitter : Symbol(EventEmitter, Decl(b.js, 0, 8)) 73 export class Foo extends EventEmitter { 75 >EventEmitter : Symbol(EventEmitter, Decl(b.js, 0, 8))
|
D | importDeclFromTypeNodeInJsSource.js | 7 namespace EventEmitter { 8 class EventEmitter { class 12 export = EventEmitter; 33 import { EventEmitter } from 'events'; 37 export class Foo extends EventEmitter { 57 class Foo extends events_1.EventEmitter { 72 export class Foo extends EventEmitter { 80 import { EventEmitter } from "events";
|
D | fatArrowSelf.symbols | 11 export class EventEmitter { 12 >EventEmitter : Symbol(EventEmitter, Decl(fatArrowSelf.ts, 3, 5)) 15 >addListener : Symbol(EventEmitter.addListener, Decl(fatArrowSelf.ts, 4, 31)) 29 constructor (private emitter: Events.EventEmitter) { } 32 >EventEmitter : Symbol(Events.EventEmitter, Decl(fatArrowSelf.ts, 3, 5)) 38 >this.emitter.addListener : Symbol(Events.EventEmitter.addListener, Decl(fatArrowSelf.ts, 4, 31)) 42 >addListener : Symbol(Events.EventEmitter.addListener, Decl(fatArrowSelf.ts, 4, 31))
|
D | fatArrowSelf.types | 9 export class EventEmitter { 10 >EventEmitter : EventEmitter 26 constructor (private emitter: Events.EventEmitter) { } 27 >emitter : Events.EventEmitter 36 >this.emitter : Events.EventEmitter 38 >emitter : Events.EventEmitter
|
/third_party/node/lib/ |
D | events.js | 87 function EventEmitter(opts) { class 88 EventEmitter.init.call(this, opts); 90 module.exports = EventEmitter; 95 EventEmitter.EventEmitter = EventEmitter; 97 EventEmitter.usingDomains = false; 99 EventEmitter.captureRejectionSymbol = kRejection; 100 ObjectDefineProperty(EventEmitter, 'captureRejections', { 102 return EventEmitter.prototype[kCapture]; 110 EventEmitter.prototype[kCapture] = value; 115 EventEmitter.errorMonitor = kErrorMonitor; [all …]
|
/third_party/node/test/parallel/ |
D | test-event-emitter-subclass.js | 25 const EventEmitter = require('events').EventEmitter; constant 27 Object.setPrototypeOf(MyEE.prototype, EventEmitter.prototype); 28 Object.setPrototypeOf(MyEE, EventEmitter); 34 EventEmitter.call(this); 41 Object.setPrototypeOf(ErrorEE.prototype, EventEmitter.prototype); 42 Object.setPrototypeOf(ErrorEE, EventEmitter); 59 EventEmitter.call(this); 62 MyEE2.prototype = new EventEmitter();
|
D | test-event-capture-rejections.js | 4 const { EventEmitter, captureRejectionSymbol } = require('events'); 12 inherits(NoConstructor, EventEmitter); 15 const ee = new EventEmitter({ captureRejections: true }); 30 const ee = new EventEmitter({ captureRejections: true }); 55 const ee = new EventEmitter(); 75 assert.strictEqual(EventEmitter.captureRejections, false); 76 EventEmitter.captureRejections = true; 77 const ee = new EventEmitter(); 87 EventEmitter.captureRejections = false; 97 const ee = new EventEmitter({ captureRejections: true }); [all …]
|
D | test-event-emitter-remove-listeners.js | 25 const EventEmitter = require('events'); constant 32 const ee = new EventEmitter(); 43 const ee = new EventEmitter(); 51 const ee = new EventEmitter(); 71 const ee = new EventEmitter(); 92 const ee = new EventEmitter(); 112 const ee = new EventEmitter(); 131 const ee = new EventEmitter(); 142 const ee = new EventEmitter(); 148 const ee = new EventEmitter(); [all …]
|
D | test-event-emitter-listeners.js | 41 const ee = new events.EventEmitter(); 51 const ee = new events.EventEmitter(); 62 const ee = new events.EventEmitter(); 71 const ee = new events.EventEmitter(); 77 const ee = new events.EventEmitter(); 84 const ee = new events.EventEmitter(); 90 class TestStream extends events.EventEmitter {} 96 const ee = new events.EventEmitter(); 115 const ee = new events.EventEmitter();
|
D | test-events-once.js | 5 const { once, EventEmitter } = require('events'); 15 const ee = new EventEmitter(); 28 const ee = new EventEmitter(); 39 const ee = new EventEmitter(); 58 const ee = new EventEmitter(); 79 const ee = new EventEmitter(); 116 const ee = new EventEmitter(); 124 const ee = new EventEmitter(); 141 const ee = new EventEmitter(); 152 const ee = new EventEmitter();
|
D | test-event-emitter-get-max-listeners.js | 4 const EventEmitter = require('events'); constant 6 const emitter = new EventEmitter(); 8 assert.strictEqual(emitter.getMaxListeners(), EventEmitter.defaultMaxListeners); 18 EventEmitter.prototype.on.call(recv, 'event', () => {}); class 19 EventEmitter.prototype.on.call(recv, 'event', () => {});
|
D | test-global-console-exists.js | 9 const EventEmitter = require('events'); constant 21 EventEmitter.defaultMaxListeners = oldDefault; 38 const oldDefault = EventEmitter.defaultMaxListeners; 39 EventEmitter.defaultMaxListeners = 1; 41 const e = new EventEmitter();
|
D | test-internal-socket-list-receive.js | 6 const EventEmitter = require('events'); constant 13 const child = Object.assign(new EventEmitter(), { 25 const child = Object.assign(new EventEmitter(), { 39 const child = Object.assign(new EventEmitter(), { 55 const child = new EventEmitter(); 56 const obj = { socket: new EventEmitter() };
|
D | test-events-on-async-iterator.js | 6 const { on, EventEmitter } = require('events'); 14 const ee = new EventEmitter(); 48 const ee = new EventEmitter(); 72 const ee = new EventEmitter(); 98 const ee = new EventEmitter(); 119 const ee = new EventEmitter(); 152 const ee = new EventEmitter(); 183 const ee = new EventEmitter(); 237 const et = new EventEmitter(); 259 const ee = new EventEmitter(); [all …]
|
D | test-event-emitter-remove-all-listeners.js | 40 const ee = new events.EventEmitter(); 67 const ee = new events.EventEmitter(); 79 const ee = new events.EventEmitter(); 88 const ee = new events.EventEmitter(); 102 const ee = new events.EventEmitter(); 107 const ee = new events.EventEmitter(); 113 const ee = new events.EventEmitter();
|
D | test-internal-socket-list-send.js | 6 const EventEmitter = require('events'); constant 14 const child = Object.assign(new EventEmitter(), { connected: false }); 31 const child = Object.assign(new EventEmitter(), { 54 const child = Object.assign(new EventEmitter(), { 74 const child = Object.assign(new EventEmitter(), { 99 const child = Object.assign(new EventEmitter(), { 128 const child = Object.assign(new EventEmitter(), {
|
D | test-event-emitter-check-listener-leaks.js | 30 const e = new events.EventEmitter(); 73 events.EventEmitter.defaultMaxListeners = 42; 74 const e = new events.EventEmitter(); 84 events.EventEmitter.defaultMaxListeners = 44; 93 events.EventEmitter.defaultMaxListeners = 42; 94 const e = new events.EventEmitter();
|
D | test-event-emitter-error-monitor.js | 4 const EventEmitter = require('events'); constant 6 const EE = new EventEmitter(); 10 EventEmitter.errorMonitor, 28 assert.rejects(EventEmitter.once(EE, 'notTriggered'), theErr);
|
D | test-event-emitter-once.js | 25 const EventEmitter = require('events'); constant 27 const e = new EventEmitter(); 58 const ee = new EventEmitter(); 68 EventEmitter.prototype.emit.apply(ee, args); class
|
/third_party/typescript/tests/baselines/reference/user/ |
D | npm.log | 5 …ules/npm/bin/npm-cli.js(47,7): error TS2339: Property 'argv' does not exist on type 'EventEmitter'. 6 …es/npm/bin/npm-cli.js(48,11): error TS2339: Property 'deref' does not exist on type 'EventEmitter'. 7 …les/npm/bin/npm-cli.js(48,21): error TS2339: Property 'argv' does not exist on type 'EventEmitter'. 8 …/npm/bin/npm-cli.js(48,35): error TS2339: Property 'command' does not exist on type 'EventEmitter'. 9 …les/npm/bin/npm-cli.js(48,49): error TS2339: Property 'argv' does not exist on type 'EventEmitter'. 10 …/npm/bin/npm-cli.js(52,21): error TS2339: Property 'version' does not exist on type 'EventEmitter'. 11 …s/npm/bin/npm-cli.js(57,9): error TS2339: Property 'command' does not exist on type 'EventEmitter'. 12 …ules/npm/bin/npm-cli.js(59,9): error TS2339: Property 'argv' does not exist on type 'EventEmitter'. 13 …/npm/bin/npm-cli.js(62,35): error TS2339: Property 'version' does not exist on type 'EventEmitter'. 14 …/npm/bin/npm-cli.js(67,25): error TS2339: Property 'command' does not exist on type 'EventEmitter'. [all …]
|
/third_party/typescript/tests/cases/compiler/ |
D | importDeclFromTypeNodeInJsSource.ts | 11 namespace EventEmitter { namespace 12 class EventEmitter { class 16 export = EventEmitter; 37 import { EventEmitter } from 'events'; 41 export class Foo extends EventEmitter {
|
/third_party/node/doc/api/ |
D | events.md | 19 All objects that emit events are instances of the `EventEmitter` class. These 25 When the `EventEmitter` object emits an event, all of the functions attached 29 The following example shows a simple `EventEmitter` instance with a single 34 const EventEmitter = require('events'); 36 class MyEmitter extends EventEmitter {} 50 is intentionally set to reference the `EventEmitter` instance to which the 68 the `this` keyword will no longer reference the `EventEmitter` instance: 81 The `EventEmitter` calls all listeners synchronously in the order in which 132 When an error occurs within an `EventEmitter` instance, the typical action is 136 If an `EventEmitter` does _not_ have at least one listener registered for the [all …]
|
/third_party/node/deps/npm/node_modules/are-we-there-yet/ |
D | tracker-base.js | 2 var EventEmitter = require('events').EventEmitter variable 7 EventEmitter.call(this) 11 util.inherits(TrackerBase, EventEmitter)
|