8 lines
242 B
JavaScript
8 lines
242 B
JavaScript
const {EventEmitter} = require('events')
|
|
const {screen, Screen} = process.atomBinding('screen')
|
|
|
|
// Screen is an EventEmitter.
|
|
Object.setPrototypeOf(Screen.prototype, EventEmitter.prototype)
|
|
EventEmitter.call(screen)
|
|
|
|
module.exports = screen
|