| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent e2ce130 commit 403ccb6
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -37,12 +37,6 @@ | |||
| 37 | 37 | NativeModule.require('internal/process/next_tick').setup(); | |
| 38 | 38 | NativeModule.require('internal/process/stdio').setup(); | |
| 39 | 39 | ||
| 40 | - const browserGlobals = !process._noBrowserGlobals; | ||
| 41 | - if (browserGlobals) { | ||
| 42 | - setupGlobalTimeouts(); | ||
| 43 | - setupGlobalConsole(); | ||
| 44 | - } | ||
| 45 | - | ||
| 46 | 40 | const perf = process.binding('performance'); | |
| 47 | 41 | const { | |
| 48 | 42 | NODE_PERFORMANCE_MILESTONE_BOOTSTRAP_COMPLETE, | |
@@ -74,6 +68,12 @@ | |||
| 74 | 68 | ||
| 75 | 69 | _process.setupRawDebug(); | |
| 76 | 70 | ||
| 71 | + const browserGlobals = !process._noBrowserGlobals; | ||
| 72 | + if (browserGlobals) { | ||
| 73 | + setupGlobalTimeouts(); | ||
| 74 | + setupGlobalConsole(); | ||
| 75 | + } | ||
| 76 | + | ||
| 77 | 77 | // Ensure setURLConstructor() is called before the native | |
| 78 | 78 | // URL::ToObject() method is used. | |
| 79 | 79 | NativeModule.require('internal/url'); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,18 @@ | |||
| 1 | + 'use strict'; | ||
| 2 | + const common = require('../common'); | ||
| 3 | + const assert = require('assert'); | ||
| 4 | + | ||
| 5 | + const spawn = require('child_process').spawn; | ||
| 6 | + | ||
| 7 | + if (process.argv[2] === 'child') { | ||
| 8 | + process.send('hahah'); | ||
| 9 | + return; | ||
| 10 | + } | ||
| 11 | + | ||
| 12 | + const proc = spawn(process.execPath, [__filename, 'child'], { | ||
| 13 | + stdio: ['inherit', 'ipc', 'inherit'] | ||
| 14 | + }); | ||
| 15 | + | ||
| 16 | + proc.on('exit', common.mustCall(function(code) { | ||
| 17 | + assert.strictEqual(code, 0); | ||
| 18 | + })); | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments