From ca461f9e83b2c692442bb7e20c2f9e3670d2ef6a Mon Sep 17 00:00:00 2001 From: Dylan Conway <35280289+dylan-conway@users.noreply.github.com> Date: Mon, 11 Sep 2023 17:19:21 -0700 Subject: fix loading env from `.env.production` and friends (#4630) * reload conditional vars * test * change `get` and `put` methods * dont clone empty env variables --- src/bun.js/javascript.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/bun.js/javascript.zig') diff --git a/src/bun.js/javascript.zig b/src/bun.js/javascript.zig index 0d73c31c5..752fcb3a4 100644 --- a/src/bun.js/javascript.zig +++ b/src/bun.js/javascript.zig @@ -670,7 +670,7 @@ pub const VirtualMachine = struct { } if (map.map.fetchSwapRemove("BUN_INTERNAL_IPC_FD")) |kv| { - if (std.fmt.parseInt(i32, kv.value, 10) catch null) |fd| { + if (std.fmt.parseInt(i32, kv.value.value, 10) catch null) |fd| { this.initIPCInstance(fd); } else { Output.printErrorln("Failed to parse BUN_INTERNAL_IPC_FD", .{}); -- cgit v1.2.3