summaryrefslogtreecommitdiff
path: root/ext/node/polyfill.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2023-05-17 14:29:50 +0200
committerGitHub <noreply@github.com>2023-05-17 12:29:50 +0000
commit1541c2ac9b9b4380adeedad10ed87682c0fc6d49 (patch)
tree0408e2a09f05097b9e1107dda59147f2c55bb541 /ext/node/polyfill.rs
parent6a78551635cb87595bc05eb3b76718f181486289 (diff)
fix(node): export diagnostics_channel module (#19167)
Closes https://github.com/denoland/deno/issues/19166
Diffstat (limited to 'ext/node/polyfill.rs')
-rw-r--r--ext/node/polyfill.rs5
1 files changed, 5 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",
},