Set prototype of constructor directly
This commit is contained in:
parent
8c3232dc56
commit
844f32aa36
19 changed files with 84 additions and 158 deletions
|
@ -6,10 +6,6 @@ const util = require('util')
|
|||
const Module = require('module')
|
||||
const v8 = require('v8')
|
||||
|
||||
// Save the prototype of EventEmitter, must be called before using native API.
|
||||
const {setEventEmitterPrototype} = process.binding('atom_browser_event_emitter')
|
||||
setEventEmitterPrototype(require('events').EventEmitter)
|
||||
|
||||
// We modified the original process.argv to let node.js load the atom.js,
|
||||
// we need to restore it here.
|
||||
process.argv.splice(1, 1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue