Skip to content

Commit

Permalink
fixup! debugger: refactor internal/inspector/_inspect to use more p…
Browse files Browse the repository at this point in the history
…rimordials
  • Loading branch information
aduh95 committed Apr 26, 2021
1 parent 0371b43 commit e35f2f7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/internal/inspector/_inspect.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ const {
setInterval,
setTimeout,
} = require('timers/promises');
const {
AbortController,
} = require('internal/abort_controller');

// TODO(aduh95): remove console calls
const console = require('internal/console/global');
Expand All @@ -75,7 +78,7 @@ class StartupError extends Error {
}

async function portIsFree(host, port, timeout = 9999) {
if (port === 0) return PromiseResolve(); // Binding to a random port.
if (port === 0) return; // Binding to a random port.

const retryDelay = 150;
const ac = new AbortController();
Expand Down

0 comments on commit e35f2f7

Please sign in to comment.