Fix no_function.

This commit is contained in:
Stephen Chung
2022-09-13 21:12:44 +08:00
parent 4be8062924
commit 257991ca31
4 changed files with 8 additions and 30 deletions

View File

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