Merge pull request #320 from KokaKiwi/no-std-module-resolver

engine(module_resolver): Fix build for no_std
This commit is contained in:
Stephen Chung 2020-12-30 22:29:32 +08:00 committed by GitHub
commit 0ea23859b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -785,7 +785,7 @@ impl Engine {
module_resolver: Box::new(crate::module::resolvers::FileModuleResolver::new()),
#[cfg(not(feature = "no_module"))]
#[cfg(any(feature = "no_std", target_arch = "wasm32",))]
module_resolver: None,
module_resolver: Box::new(crate::module::resolvers::DummyModuleResolver::new()),
type_names: Default::default(),
disabled_symbols: Default::default(),