diff options
author | 2021-10-30 05:01:47 -0700 | |
---|---|---|
committer | 2021-10-30 05:01:47 -0700 | |
commit | 154c8372e303d27c33e8731187919b4bddcbf652 (patch) | |
tree | 45691d5726250f1c2c2884cab1694eaf9a117a2b | |
parent | a68b5eef86b5e2e8b05a36b2bd7cc9305c6f1146 (diff) | |
download | bun-154c8372e303d27c33e8731187919b4bddcbf652.tar.gz bun-154c8372e303d27c33e8731187919b4bddcbf652.tar.zst bun-154c8372e303d27c33e8731187919b4bddcbf652.zip |
[Bun.js] Call JSCInitialize() before starting
-rw-r--r-- | src/bun_js.zig | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bun_js.zig b/src/bun_js.zig index e0af9d273..681aa08ef 100644 --- a/src/bun_js.zig +++ b/src/bun_js.zig @@ -30,6 +30,8 @@ pub const Run = struct { vm: *VirtualMachine, entry_path: string, pub fn boot(ctx: Command.Context, file: std.fs.File, entry_path: string) !void { + @import("javascript/jsc/JavascriptCore.zig").JSCInitialize(); + js_ast.Expr.Data.Store.create(default_allocator); js_ast.Stmt.Data.Store.create(default_allocator); |