From 63f1c859645c18e5032c7b8855f9381debaf940e Mon Sep 17 00:00:00 2001 From: Karl Seguin Date: Tue, 13 Jan 2026 18:09:58 +0800 Subject: [PATCH] Remove unnecessary microtask run. This crashes linux in releasesafe without an embedded snapshot. Not sure why, but it shouldn't be necessary. This was added back when we were executing microtasks on a schedule, rather than manually at explicit points. --- src/browser/js/ExecutionWorld.zig | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/browser/js/ExecutionWorld.zig b/src/browser/js/ExecutionWorld.zig index e6f08bf6..c65fcaa0 100644 --- a/src/browser/js/ExecutionWorld.zig +++ b/src/browser/js/ExecutionWorld.zig @@ -143,12 +143,6 @@ pub fn createContext(self: *ExecutionWorld, page: *Page, enter: bool) !*Context } pub fn removeContext(self: *ExecutionWorld) void { - // Force running the micro task to drain the queue before reseting the - // context arena. - // Tasks in the queue are relying to the arena memory could be present in - // the queue. Running them later could lead to invalid memory accesses. - self.env.runMicrotasks(); - var context = &(self.context orelse return); context.deinit(); self.context = null;