We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
internal/inspector/_inspect
1 parent 0371b43 commit e35f2f7Copy full SHA for e35f2f7
lib/internal/inspector/_inspect.js
@@ -55,6 +55,9 @@ const {
55
setInterval,
56
setTimeout,
57
} = require('timers/promises');
58
+const {
59
+ AbortController,
60
+} = require('internal/abort_controller');
61
62
// TODO(aduh95): remove console calls
63
const console = require('internal/console/global');
@@ -75,7 +78,7 @@ class StartupError extends Error {
75
78
}
76
79
77
80
async function portIsFree(host, port, timeout = 9999) {
- if (port === 0) return PromiseResolve(); // Binding to a random port.
81
+ if (port === 0) return; // Binding to a random port.
82
83
const retryDelay = 150;
84
const ac = new AbortController();
0 commit comments