Skip to content

Commit f3a9e3d

Browse files
authored
Undo b757c82 (#304)
Based on this (1) comment, this might not be a great idea. And, with the cancel now "supported" on MacOS, I think we can fix the original issue (WPT tests crashing) differently. (1) #299 (comment)
1 parent ce1bffb commit f3a9e3d

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/loop.zig

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,14 +293,12 @@ pub const SingleThreaded = struct {
293293
// Reset all existing JS callbacks.
294294
pub fn resetJS(self: *Self) void {
295295
self.js_ctx_id += 1;
296-
self.resetEvents(.js);
297296
self.cancelled.clearRetainingCapacity();
298297
}
299298

300299
// Reset all existing Zig callbacks.
301300
pub fn resetZig(self: *Self) void {
302301
self.zig_ctx_id += 1;
303-
self.resetEvents(.zig);
304302
}
305303

306304
// IO callbacks APIs

0 commit comments

Comments
 (0)