mirror of
https://github.com/oven-sh/bun
synced 2026-02-10 19:08:50 +00:00
Fix process.argv with standalone
This commit is contained in:
@@ -1114,6 +1114,13 @@ pub const Command = struct {
|
||||
};
|
||||
|
||||
ctx.args.target = Api.Target.bun;
|
||||
var argv = try bun.default_allocator.alloc(string, std.os.argv.len -| 1);
|
||||
if (std.os.argv.len > 1) {
|
||||
for (argv, std.os.argv[1..]) |*dest, src| {
|
||||
dest.* = bun.span(src);
|
||||
}
|
||||
}
|
||||
ctx.passthrough = argv;
|
||||
|
||||
try @import("./bun_js.zig").Run.bootStandalone(
|
||||
ctx,
|
||||
|
||||
Reference in New Issue
Block a user