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
|
@ -1,6 +1,8 @@
|
|||
const EventEmitter = require('events').EventEmitter
|
||||
const {autoUpdater, AutoUpdater} = process.atomBinding('auto_updater')
|
||||
|
||||
// AutoUpdater is an EventEmitter.
|
||||
Object.setPrototypeOf(AutoUpdater.prototype, EventEmitter.prototype)
|
||||
EventEmitter.call(autoUpdater)
|
||||
|
||||
module.exports = autoUpdater
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue