Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Commit

Permalink
Do not override DOM's global functions in renderer.
Browse files Browse the repository at this point in the history
  • Loading branch information
zcbenz committed Feb 18, 2016
1 parent 02a6357 commit 82e10ce
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,26 @@

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();
startup.processNextTick();
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
Expand All @@ -45,6 +50,7 @@
startup.processChannel();

startup.processRawDebug();
} // not isRenderer

process.argv[0] = process.execPath;

Expand Down

0 comments on commit 82e10ce

Please sign in to comment.