diff --git a/src/node.js b/src/node.js index 57a803cfc44..9e7c5508332 100644 --- a/src/node.js +++ b/src/node.js @@ -22,14 +22,18 @@ process.EventEmitter = EventEmitter; // process.EventEmitter is deprecated + var isRenderer = process.argv[2] == '--type=renderer'; + startup.setupProcessObject(); // do this good and early, since it handles errors. startup.processFatal(); startup.globalVariables(); + if (!isRenderer) { // No indent to minimize diff. startup.globalTimeouts(); startup.globalConsole(); + } // not isRenderer startup.processAssert(); startup.processConfig(); @@ -37,6 +41,7 @@ startup.processPromises(); startup.processStdio(); startup.processKillAndExit(); + if (!isRenderer) { // No indent to minimize diff. startup.processSignalHandlers(); // Do not initialize channel in debugger agent, it deletes env variable @@ -45,6 +50,7 @@ startup.processChannel(); startup.processRawDebug(); + } // not isRenderer process.argv[0] = process.execPath;