mirror of
https://github.com/oven-sh/bun
synced 2026-02-15 21:32:05 +00:00
Update ModuleLoader.zig
This commit is contained in:
@@ -2130,15 +2130,18 @@ fn setBreakPointOnFirstLine() bool {
|
||||
}
|
||||
|
||||
pub const RuntimeTranspilerStore = struct {
|
||||
generation_number: std.atomic.Value(u32) = std.atomic.Value(u32).init(0),
|
||||
generation_number: std.atomic.Value(u32),
|
||||
store: TranspilerJob.Store,
|
||||
enabled: bool = true,
|
||||
queue: Queue = Queue{},
|
||||
enabled: bool,
|
||||
queue: Queue,
|
||||
|
||||
pub const Queue = bun.UnboundedQueue(TranspilerJob, .next);
|
||||
|
||||
pub fn zero(this: *RuntimeTranspilerStore) void {
|
||||
this.store.zero(bun.typedAllocator(TranspilerJob));
|
||||
this.generation_number = std.atomic.Value(u32).init(0);
|
||||
this.enabled = true;
|
||||
this.queue = Queue{};
|
||||
}
|
||||
|
||||
// This is run at the top of the event loop on the JS thread.
|
||||
|
||||
Reference in New Issue
Block a user