aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/env_loader.zig4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/env_loader.zig b/src/env_loader.zig
index 5d8fa4873..361b79894 100644
--- a/src/env_loader.zig
+++ b/src/env_loader.zig
@@ -676,8 +676,10 @@ pub const Loader = struct {
// This is a little weird because it's evidently stored line-by-line
var source = logger.Source.initPathString("process.env", "");
+
+ this.map.map.ensureTotalCapacity(std.os.environ.len) catch unreachable;
for (std.os.environ) |env| {
- source.contents = std.mem.span(env);
+ source.contents = bun.span(env);
Parser.parse(&source, this.allocator, this.map, true, true);
}
this.did_load_process = true;