Merge pull request #1150 from lightpanda-io/isdone-async

isDone must be run after script's deinit
This commit is contained in:
Karl Seguin
2025-10-15 15:58:42 +08:00
committed by GitHub

View File

@@ -602,8 +602,9 @@ pub const PendingScript = struct {
return;
}
// async script can be evaluated immediately
defer self.deinit();
self.script.eval(manager.page);
self.deinit();
// asyncScriptIsDone must be run after the pending script is deinit.
manager.asyncScriptIsDone();
}