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

isDone must be run after script's deinit
This commit is contained in:
Karl Seguin authored and GitHub committed 2025-10-15 15:58:42 +08:00
commit 73da04bea2
1 file changed
+2 -1
+2 -1
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();
}