From 07fc765d9c4a7a2bb1b881ff47b375f00207d8fc Mon Sep 17 00:00:00 2001 From: Alistair Smith Date: Mon, 2 Jun 2025 11:36:31 -0700 Subject: [PATCH] merge issue --- src/bun.js/event_loop.zig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/bun.js/event_loop.zig b/src/bun.js/event_loop.zig index 47b5a3a078..80259c212f 100644 --- a/src/bun.js/event_loop.zig +++ b/src/bun.js/event_loop.zig @@ -29,6 +29,10 @@ imminent_gc_timer: std.atomic.Value(?*Timer.WTFTimer) = .{ .raw = null }, signal_handler: if (Environment.isPosix) ?*PosixSignalHandle else void = if (Environment.isPosix) null, +// Permalink comment why this flag: +// https://github.com/oven-sh/bun/blob/6cbd25820128bf9ac75ace6eb1d160a9ae531226/src/bun.js/event_loop.zig#L939-L943 +is_inside_spawn_sync: bool = false, + pub const Debug = if (Environment.isDebug) struct { is_inside_tick_queue: bool = false, js_call_count_outside_tick_queue: usize = 0,