diff options
author | 2022-09-20 00:07:01 -0700 | |
---|---|---|
committer | 2022-09-20 00:07:01 -0700 | |
commit | 167948f5c3afc0a4dc482222e42bd255951084ff (patch) | |
tree | 2321040cd648947a9c89f62c4c645498da6edbb4 /src/bun.js/javascript.zig | |
parent | 37d191bc02dd5255ce0d6675017d5c491327e768 (diff) | |
download | bun-167948f5c3afc0a4dc482222e42bd255951084ff.tar.gz bun-167948f5c3afc0a4dc482222e42bd255951084ff.tar.zst bun-167948f5c3afc0a4dc482222e42bd255951084ff.zip |
Fix incorrect `hostname` logic
Fixes https://github.com/oven-sh/bun/issues/1261
Diffstat (limited to '')
-rw-r--r-- | src/bun.js/javascript.zig | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/bun.js/javascript.zig b/src/bun.js/javascript.zig index d52a864a9..eb3a5a455 100644 --- a/src/bun.js/javascript.zig +++ b/src/bun.js/javascript.zig @@ -350,7 +350,22 @@ pub const VirtualMachine = struct { has_any_macro_remappings: bool = false, is_from_devserver: bool = false, has_enabled_macro_mode: bool = false, + + /// The arguments used to launch the process _after_ the script name and bun and any flags applied to Bun + /// "bun run foo --bar" + /// ["--bar"] + /// "bun run foo baz --bar" + /// ["baz", "--bar"] + /// "bun run foo + /// [] + /// "bun foo --bar" + /// ["--bar"] + /// "bun foo baz --bar" + /// ["baz", "--bar"] + /// "bun foo + /// [] argv: []const []const u8 = &[_][]const u8{"bun"}, + global_api_constructors: [GlobalConstructors.len]JSC.JSValue = undefined, origin_timer: std.time.Timer = undefined, |