diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2023-05-17 14:29:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-17 12:29:50 +0000 |
commit | 1541c2ac9b9b4380adeedad10ed87682c0fc6d49 (patch) | |
tree | 0408e2a09f05097b9e1107dda59147f2c55bb541 /ext/node | |
parent | 6a78551635cb87595bc05eb3b76718f181486289 (diff) |
fix(node): export diagnostics_channel module (#19167)
Closes https://github.com/denoland/deno/issues/19166
Diffstat (limited to 'ext/node')
-rw-r--r-- | ext/node/polyfill.rs | 5 | ||||
-rw-r--r-- | ext/node/polyfills/01_require.js | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/ext/node/polyfill.rs b/ext/node/polyfill.rs index ff4b0f43c..3d4a1a9fc 100644 --- a/ext/node/polyfill.rs +++ b/ext/node/polyfill.rs @@ -32,6 +32,7 @@ pub struct NodeModulePolyfill { pub specifier: &'static str, } +// NOTE(bartlomieju): keep this list in sync with `ext/node/polyfills/01_require.js` pub static SUPPORTED_BUILTIN_NODE_MODULES: &[NodeModulePolyfill] = &[ NodeModulePolyfill { name: "assert", @@ -74,6 +75,10 @@ pub static SUPPORTED_BUILTIN_NODE_MODULES: &[NodeModulePolyfill] = &[ specifier: "ext:deno_node/dgram.ts", }, NodeModulePolyfill { + name: "diagnostics_channel", + specifier: "ext:deno_node/diagnostics_channel.ts", + }, + NodeModulePolyfill { name: "dns", specifier: "ext:deno_node/dns.ts", }, diff --git a/ext/node/polyfills/01_require.js b/ext/node/polyfills/01_require.js index 7b91d12aa..394015e31 100644 --- a/ext/node/polyfills/01_require.js +++ b/ext/node/polyfills/01_require.js @@ -132,6 +132,7 @@ import zlib from "ext:deno_node/zlib.ts"; const nativeModuleExports = ObjectCreate(null); const builtinModules = []; +// NOTE(bartlomieju): keep this list in sync with `ext/node/polyfill.rs` function setupBuiltinModules() { const nodeModules = { "_http_agent": _httpAgent, |