This repository was archived by the owner on Dec 15, 2022. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2222
2323process . EventEmitter = EventEmitter ; // process.EventEmitter is deprecated
2424
25+ var isRenderer = process . argv [ 2 ] == '--type=renderer' ;
26+
2527startup . setupProcessObject ( ) ;
2628
2729// do this good and early, since it handles errors.
2830startup . processFatal ( ) ;
2931
3032startup . globalVariables ( ) ;
33+ if ( ! isRenderer ) { // No indent to minimize diff.
3134startup . globalTimeouts ( ) ;
3235startup . globalConsole ( ) ;
36+ } // not isRenderer
3337
3438startup . processAssert ( ) ;
3539startup . processConfig ( ) ;
3640startup . processNextTick ( ) ;
3741startup . processPromises ( ) ;
3842startup . processStdio ( ) ;
3943startup . processKillAndExit ( ) ;
44+ if ( ! isRenderer ) { // No indent to minimize diff.
4045startup . processSignalHandlers ( ) ;
4146
4247// Do not initialize channel in debugger agent, it deletes env variable
4550startup . processChannel ( ) ;
4651
4752startup . processRawDebug ( ) ;
53+ } // not isRenderer
4854
4955process . argv [ 0 ] = process . execPath ;
5056
You can’t perform that action at this time.
0 commit comments