We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4bf79e4 commit cd9466dCopy full SHA for cd9466d
src/browser/ScriptManager.zig
@@ -122,7 +122,9 @@ pub fn reset(self: *ScriptManager) void {
122
self.sync_module_pool.destroy(value_ptr.*);
123
}
124
self.sync_modules.clearRetainingCapacity();
125
- self.importmap.clearRetainingCapacity();
+ // Our allocator is the page arena, it's been reset. We cannot use
126
+ // clearAndRetainCapacity, since that space is no longer ours
127
+ self.importmap.clearAndFree(self.page.arena);
128
129
self.clearList(&self.asyncs);
130
self.clearList(&self.scripts);
0 commit comments