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:
parent
af8c26c166
commit
840779a4ea
2 changed files with 6 additions and 0 deletions
|
@ -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",
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue