diff --git a/ext/node/lib.rs b/ext/node/lib.rs index fd9d4f9afc..dab9cc7bd1 100644 --- a/ext/node/lib.rs +++ b/ext/node/lib.rs @@ -615,6 +615,7 @@ deno_core::extension!(deno_node, "node:http2" = "http2.ts", "node:https" = "https.ts", "node:inspector" = "inspector.ts", + "node:inspector/promises" = "inspector.ts", "node:module" = "01_require.js", "node:net" = "net.ts", "node:os" = "os.ts", diff --git a/ext/node/polyfills/01_require.js b/ext/node/polyfills/01_require.js index ebbf92ba65..e79f5a654b 100644 --- a/ext/node/polyfills/01_require.js +++ b/ext/node/polyfills/01_require.js @@ -99,6 +99,7 @@ import http from "node:http"; import http2 from "node:http2"; import https from "node:https"; import inspector from "node:inspector"; +import inspectorPromises from "node:inspector/promises"; import internalCp from "ext:deno_node/internal/child_process.ts"; import internalCryptoCertificate from "ext:deno_node/internal/crypto/certificate.ts"; import internalCryptoCipher from "ext:deno_node/internal/crypto/cipher.ts"; @@ -200,6 +201,7 @@ function setupBuiltinModules() { http2, https, inspector, + "inspector/promises": inspectorPromises, "internal/console/constructor": internalConsole, "internal/child_process": internalCp, "internal/crypto/certificate": internalCryptoCertificate,