| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 3d8a7e9 commit 8c0c456
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -33,12 +33,6 @@ | |||
| 33 | 33 | NativeModule.require('internal/process/next_tick').setup(); | |
| 34 | 34 | NativeModule.require('internal/process/stdio').setup(); | |
| 35 | 35 | ||
| 36 | - const browserGlobals = !process._noBrowserGlobals; | ||
| 37 | - if (browserGlobals) { | ||
| 38 | - setupGlobalTimeouts(); | ||
| 39 | - setupGlobalConsole(); | ||
| 40 | - } | ||
| 41 | - | ||
| 42 | 36 | const perf = process.binding('performance'); | |
| 43 | 37 | const { | |
| 44 | 38 | NODE_PERFORMANCE_MILESTONE_BOOTSTRAP_COMPLETE, | |
@@ -70,6 +64,12 @@ | |||
| 70 | 64 | ||
| 71 | 65 | _process.setupRawDebug(); | |
| 72 | 66 | ||
| 67 | + const browserGlobals = !process._noBrowserGlobals; | ||
| 68 | + if (browserGlobals) { | ||
| 69 | + setupGlobalTimeouts(); | ||
| 70 | + setupGlobalConsole(); | ||
| 71 | + } | ||
| 72 | + | ||
| 73 | 73 | // Ensure setURLConstructor() is called before the native | |
| 74 | 74 | // URL::ToObject() method is used. | |
| 75 | 75 | 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