diff --git a/lib/runtime-core/src/import.rs b/lib/runtime-core/src/import.rs index 7a606f6c5..5fb5b4b28 100644 --- a/lib/runtime-core/src/import.rs +++ b/lib/runtime-core/src/import.rs @@ -189,6 +189,13 @@ impl Namespace { { self.map.insert(name.into(), Box::new(export)) } + + pub fn contains_key(&mut self, key: S) -> bool + where + S: Into, + { + self.map.contains_key(&key.into()) + } } impl LikeNamespace for Namespace {