Set prototype of constructor directly
This commit is contained in:
parent
8c3232dc56
commit
844f32aa36
19 changed files with 84 additions and 158 deletions
|
@ -1,6 +1,6 @@
|
|||
const {EventEmitter} = require('events')
|
||||
const {screen} = process.atomBinding('screen')
|
||||
const {screen, Screen} = process.atomBinding('screen')
|
||||
|
||||
Object.setPrototypeOf(screen.__proto__, EventEmitter.prototype)
|
||||
Object.setPrototypeOf(Screen.prototype, EventEmitter.prototype)
|
||||
|
||||
module.exports = screen
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue