refactor: EventEmitters without gin_helper (#22726)
This commit is contained in:
parent
fc661ec56b
commit
232ca8af39
12 changed files with 277 additions and 49 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue