From 055dfe2ff437099aef105fe4beab0f0c8cc53506 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Mon, 14 Sep 2020 23:49:12 -0400 Subject: Make JsRuntimeState private (#7484) --- core/modules.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'core/modules.rs') diff --git a/core/modules.rs b/core/modules.rs index e02d5c52e..b35e691c5 100644 --- a/core/modules.rs +++ b/core/modules.rs @@ -363,6 +363,7 @@ impl ModuleNameMap { } /// Check if a name is an alias to another module. + #[cfg(test)] pub fn is_alias(&self, name: &str) -> bool { let cond = self.inner.get(name); matches!(cond, Some(SymbolicModule::Alias(_))) @@ -427,6 +428,7 @@ impl Modules { self.by_name.alias(name.to_owned(), target.to_owned()); } + #[cfg(test)] pub fn is_alias(&self, name: &str) -> bool { self.by_name.is_alias(name) } -- cgit v1.2.3