Skip to content

Commit 6ebae5f

Browse files
reset importmap with empty hasmap
Co-authored-by: Karl Seguin <[email protected]>
1 parent 58cc5b4 commit 6ebae5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/browser/ScriptManager.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ pub fn reset(self: *ScriptManager) void {
124124
self.sync_modules.clearRetainingCapacity();
125125
// Our allocator is the page arena, it's been reset. We cannot use
126126
// clearAndRetainCapacity, since that space is no longer ours
127-
self.importmap.clearAndFree(self.page.arena);
127+
self.importmap = .empty
128128

129129
self.clearList(&self.asyncs);
130130
self.clearList(&self.scripts);

0 commit comments

Comments
 (0)