Set prototype of constructor directly

This commit is contained in:
Cheng Zhao 2016-08-02 20:38:35 +09:00
parent 8c3232dc56
commit 844f32aa36
19 changed files with 84 additions and 158 deletions

View file

@ -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)