de-duplicate context shutdown in isolated worl deinit

This commit is contained in:
Karl Seguin
2026-02-03 23:04:44 +08:00
parent c07b83335b
commit 1a4086c98c

View File

@@ -760,10 +760,7 @@ const IsolatedWorld = struct {
grant_universal_access: bool,
pub fn deinit(self: *IsolatedWorld) void {
if (self.context) |ctx| {
self.browser.env.destroyContext(ctx);
self.context = null;
}
self.removeContext() catch {};
self.browser.arena_pool.release(self.arena);
}