mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-02-04 06:23:45 +00:00
update page.js on context.deinit
This commit is contained in:
@@ -150,6 +150,11 @@ pub fn fromIsolate(isolate: js.Isolate) *Context {
|
||||
}
|
||||
|
||||
pub fn deinit(self: *Context) void {
|
||||
var page = self.page;
|
||||
const prev_context = page.js;
|
||||
page.js = self;
|
||||
defer page.js = prev_context;
|
||||
|
||||
{
|
||||
var it = self.identity_map.valueIterator();
|
||||
while (it.next()) |global| {
|
||||
|
||||
Reference in New Issue
Block a user