summaryrefslogtreecommitdiff
path: root/ext/node
diff options
context:
space:
mode:
Diffstat (limited to 'ext/node')
-rw-r--r--ext/node/polyfill.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/node/polyfill.rs b/ext/node/polyfill.rs
index cedf1dd78..18faa6ea5 100644
--- a/ext/node/polyfill.rs
+++ b/ext/node/polyfill.rs
@@ -1,15 +1,15 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
pub fn find_builtin_node_module(
- specifier: &str,
+ module_name: &str,
) -> Option<&NodeModulePolyfill> {
SUPPORTED_BUILTIN_NODE_MODULES
.iter()
- .find(|m| m.name == specifier)
+ .find(|m| m.name == module_name)
}
-pub fn is_builtin_node_module(specifier: &str) -> bool {
- find_builtin_node_module(specifier).is_some()
+pub fn is_builtin_node_module(module_name: &str) -> bool {
+ find_builtin_node_module(module_name).is_some()
}
pub struct NodeModulePolyfill {