| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 0bbce03 commit 041885e
26 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -21,7 +21,7 @@ addLibraryPath(process.env); | |||
| 21 | 21 | }; | |
| 22 | 22 | env.NODE_INSPECT_RESUME_ON_START = '1'; | |
| 23 | 23 | ||
| 24 | - const cli = startCLI([script], [], { | ||
| 24 | + const cli = startCLI(['--port=0', script], [], { | ||
| 25 | 25 | env, | |
| 26 | 26 | }); | |
| 27 | 27 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -13,7 +13,7 @@ const path = require('path'); | |||
| 13 | 13 | { | |
| 14 | 14 | const scriptFullPath = fixtures.path('debugger', 'backtrace.js'); | |
| 15 | 15 | const script = path.relative(process.cwd(), scriptFullPath); | |
| 16 | - const cli = startCLI([script]); | ||
| 16 | + const cli = startCLI(['--port=0', script]); | ||
| 17 | 17 | ||
| 18 | 18 | async function runTest() { | |
| 19 | 19 | try { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -11,7 +11,7 @@ const path = require('path'); | |||
| 11 | 11 | ||
| 12 | 12 | const scriptFullPath = fixtures.path('debugger', 'break.js'); | |
| 13 | 13 | const script = path.relative(process.cwd(), scriptFullPath); | |
| 14 | - const cli = startCLI([script]); | ||
| 14 | + const cli = startCLI(['--port=0', script]); | ||
| 15 | 15 | ||
| 16 | 16 | (async () => { | |
| 17 | 17 | await cli.waitForInitialBreak(); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -9,7 +9,7 @@ const startCLI = require('../common/debugger'); | |||
| 9 | 9 | ||
| 10 | 10 | // Test for "Breakpoint at specified location already exists" error. | |
| 11 | 11 | const script = fixtures.path('debugger', 'three-lines.js'); | |
| 12 | - const cli = startCLI([script]); | ||
| 12 | + const cli = startCLI(['--port=0', script]); | ||
| 13 | 13 | ||
| 14 | 14 | (async () => { | |
| 15 | 15 | try { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -13,7 +13,7 @@ const path = require('path'); | |||
| 13 | 13 | { | |
| 14 | 14 | const scriptFullPath = fixtures.path('debugger', 'break.js'); | |
| 15 | 15 | const script = path.relative(process.cwd(), scriptFullPath); | |
| 16 | - const cli = startCLI([script]); | ||
| 16 | + const cli = startCLI(['--port=0', script]); | ||
| 17 | 17 | ||
| 18 | 18 | function onFatal(error) { | |
| 19 | 19 | cli.quit(); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -13,7 +13,7 @@ const path = require('path'); | |||
| 13 | 13 | { | |
| 14 | 14 | const scriptFullPath = fixtures.path('debugger', 'exceptions.js'); | |
| 15 | 15 | const script = path.relative(process.cwd(), scriptFullPath); | |
| 16 | - const cli = startCLI([script]); | ||
| 16 | + const cli = startCLI(['--port=0', script]); | ||
| 17 | 17 | ||
| 18 | 18 | (async () => { | |
| 19 | 19 | try { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -7,7 +7,7 @@ import startCLI from '../common/debugger.js'; | |||
| 7 | 7 | ||
| 8 | 8 | import assert from 'assert'; | |
| 9 | 9 | ||
| 10 | - const cli = startCLI([path('debugger/backtrace.js')]); | ||
| 10 | + const cli = startCLI(['--port=0', path('debugger/backtrace.js')]); | ||
| 11 | 11 | ||
| 12 | 12 | try { | |
| 13 | 13 | await cli.waitForInitialBreak(); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -8,7 +8,7 @@ const startCLI = require('../common/debugger'); | |||
| 8 | 8 | ||
| 9 | 9 | const assert = require('assert'); | |
| 10 | 10 | ||
| 11 | - const cli = startCLI([fixtures.path('debugger/alive.js')]); | ||
| 11 | + const cli = startCLI(['--port=0', fixtures.path('debugger/alive.js')]); | ||
| 12 | 12 | ||
| 13 | 13 | async function waitInitialBreak() { | |
| 14 | 14 | try { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -17,7 +17,7 @@ const filename = path.join(tmpdir.path, 'node.heapsnapshot'); | |||
| 17 | 17 | // Heap profiler take snapshot. | |
| 18 | 18 | { | |
| 19 | 19 | const opts = { cwd: tmpdir.path }; | |
| 20 | - const cli = startCLI([fixtures.path('debugger/empty.js')], [], opts); | ||
| 20 | + const cli = startCLI(['--port=0', fixtures.path('debugger/empty.js')], [], opts); | ||
| 21 | 21 | ||
| 22 | 22 | async function waitInitialBreak() { | |
| 23 | 23 | try { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -7,7 +7,7 @@ import startCLI from '../common/debugger.js'; | |||
| 7 | 7 | ||
| 8 | 8 | import assert from 'assert'; | |
| 9 | 9 | ||
| 10 | - const cli = startCLI([path('debugger', 'empty.js')]); | ||
| 10 | + const cli = startCLI(['--port=0', path('debugger', 'empty.js')]); | ||
| 11 | 11 | ||
| 12 | 12 | try { | |
| 13 | 13 | await cli.waitForInitialBreak(); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments