refactor: EventEmitters without gin_helper (#22726)

This commit is contained in:
Jeremy Apthorp
2020-03-18 12:57:08 -07:00
committed by GitHub
parent fc661ec56b
commit 232ca8af39
12 changed files with 277 additions and 49 deletions

View File

@@ -1,4 +1,5 @@
import { Buffer } from 'buffer'
import { EventEmitter } from 'events'
import * as fs from 'fs'
import * as path from 'path'
import * as util from 'util'
@@ -15,6 +16,8 @@ require('../common/reset-search-paths')
// Import common settings.
require('@electron/internal/common/init')
process.electronBinding('event_emitter').setEventEmitterPrototype(EventEmitter.prototype)
if (process.platform === 'win32') {
// Redirect node's console to use our own implementations, since node can not
// handle console output when running as GUI program.