Reduce Module size.

This commit is contained in:
Stephen Chung
2022-11-24 22:25:19 +08:00
parent bda8c2b636
commit cefe3f1715
6 changed files with 322 additions and 247 deletions

View File

@@ -303,7 +303,7 @@ impl Engine {
};
// Add the global namespace module
let mut global_namespace = Module::with_capacity(0);
let mut global_namespace = Module::new();
global_namespace.flags |= ModuleFlags::INTERNAL;
engine.global_modules.push(global_namespace.into());