singletons that are retroactively turned into EventEmitters should call the EventEmitter ctor
This commit is contained in:
parent
577012370e
commit
1c09dede1a
7 changed files with 14 additions and 0 deletions
|
@ -9,7 +9,10 @@ const {Session} = process.atomBinding('session')
|
|||
const {net, Net} = process.atomBinding('net')
|
||||
const {URLRequest} = net
|
||||
|
||||
// Net is an EventEmitter.
|
||||
Object.setPrototypeOf(Net.prototype, EventEmitter.prototype)
|
||||
EventEmitter.call(net)
|
||||
|
||||
Object.setPrototypeOf(URLRequest.prototype, EventEmitter.prototype)
|
||||
|
||||
const kSupportedProtocols = new Set(['http:', 'https:'])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue