Skip to content

Commit e35f2f7

Browse files
committed
fixup! debugger: refactor internal/inspector/_inspect to use more primordials
1 parent 0371b43 commit e35f2f7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/internal/inspector/_inspect.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ const {
5555
setInterval,
5656
setTimeout,
5757
} = require('timers/promises');
58+
const {
59+
AbortController,
60+
} = require('internal/abort_controller');
5861

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

7780
async function portIsFree(host, port, timeout = 9999) {
78-
if (port === 0) return PromiseResolve(); // Binding to a random port.
81+
if (port === 0) return; // Binding to a random port.
7982

8083
const retryDelay = 150;
8184
const ac = new AbortController();

0 commit comments

Comments
 (0)