From b3dbc14596aa17340568fb15b91bda51b70d5cd1 Mon Sep 17 00:00:00 2001 From: Minsoo Choo Date: Tue, 14 Jan 2025 18:12:07 -0500 Subject: [PATCH] refactor: remove root.JavaScriptCore --- root.zig | 4 +--- src/bun.js/webcore/S3Stat.zig | 2 +- src/bun.zig | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/root.zig b/root.zig index ed95558f039a89..f42e4ad46c3782 100644 --- a/root.zig +++ b/root.zig @@ -7,6 +7,4 @@ pub const completions = struct { pub const bash = @embedFile("./completions/bun.bash"); pub const zsh = @embedFile("./completions/bun.zsh"); pub const fish = @embedFile("./completions/bun.fish"); -}; - -pub const JavaScriptCore = @import("./src/jsc.zig"); +}; \ No newline at end of file diff --git a/src/bun.js/webcore/S3Stat.zig b/src/bun.js/webcore/S3Stat.zig index 53deb25bcb4c94..4891135cee7b5a 100644 --- a/src/bun.js/webcore/S3Stat.zig +++ b/src/bun.js/webcore/S3Stat.zig @@ -1,5 +1,5 @@ const bun = @import("../../bun.zig"); -const JSC = @import("../../jsc.zig"); +const JSC = bun.JSC; pub const S3Stat = struct { const log = bun.Output.scoped(.S3Stat, false); diff --git a/src/bun.zig b/src/bun.zig index a33b85bf413aeb..aabc1564bb2713 100644 --- a/src/bun.zig +++ b/src/bun.zig @@ -789,7 +789,7 @@ pub const invalid_fd: FileDescriptor = FDImpl.invalid.encode(); pub const simdutf = @import("./bun.js/bindings/bun-simdutf.zig"); -pub const JSC = @import("root").JavaScriptCore; +pub const JSC = @import("./jsc.zig"); pub const AsyncIO = @import("async_io"); pub const logger = @import("./logger.zig");