Compact data structures.

This commit is contained in:
Stephen Chung
2022-10-27 15:52:24 +08:00
parent 3c2e031883
commit 4708fde8bd
3 changed files with 50 additions and 37 deletions

View File

@@ -258,9 +258,7 @@ impl Engine {
#[cfg(not(feature = "no_module"))]
let is_dynamic = is_dynamic
|| _global
.iter_imports_raw()
.any(|(_, m)| m.may_contain_dynamic_fn(hash_base))
|| _global.may_contain_dynamic_fn(hash_base)
|| self
.global_sub_modules
.values()