1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-24 15:19:26 -05:00

fix(node): export diagnostics_channel module (#19167)

Closes https://github.com/denoland/deno/issues/19166
This commit is contained in:
Bartek Iwańczuk 2023-05-17 14:29:50 +02:00 committed by Levente Kurusa
parent af8c26c166
commit 840779a4ea
No known key found for this signature in database
GPG key ID: 9F72F3C05BA137C4
2 changed files with 6 additions and 0 deletions

View file

@ -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",
@ -73,6 +74,10 @@ pub static SUPPORTED_BUILTIN_NODE_MODULES: &[NodeModulePolyfill] = &[
name: "dgram",
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",

View file

@ -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,