Merge pull request #814 from lightpanda-io/root_module_nested_modules

Allow root modules to imported modules
This commit is contained in:
Karl Seguin authored and GitHub committed 2025-06-26 10:25:10 +08:00
commit 0a27e1254f
1 file changed
+3 -1
+3 -1
View File
@@ -728,7 +728,9 @@ pub fn Env(comptime State: type, comptime WebApis: type) type {
if (try m.instantiate(v8_context, resolveModuleCallback) == false) {
return error.ModuleInstantiationError;
}
const arena = self.context_arena;
const owned_url = try arena.dupe(u8, url);
try self.module_identifier.putNoClobber(arena, m.getIdentityHash(), owned_url);
_ = try m.evaluate(v8_context);
}