diff options
author | 2022-09-19 23:37:08 -0700 | |
---|---|---|
committer | 2022-09-19 23:37:08 -0700 | |
commit | da7b648971ef0f3077d4b8230d4cf2fcc1bb7719 (patch) | |
tree | 41fcb9e04289ad1eb1a48ef9333224a4eb88ff31 /src/bun_js.zig | |
parent | 8b7f43f8553eb0f012b7507ff1d2025bc646cc1c (diff) | |
download | bun-da7b648971ef0f3077d4b8230d4cf2fcc1bb7719.tar.gz bun-da7b648971ef0f3077d4b8230d4cf2fcc1bb7719.tar.zst bun-da7b648971ef0f3077d4b8230d4cf2fcc1bb7719.zip |
Pass through arguments unmodified after `bun run <script>` or `bun <script>`
Fixes https://github.com/oven-sh/bun/issues/231
Diffstat (limited to '')
-rw-r--r-- | src/bun_js.zig | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/bun_js.zig b/src/bun_js.zig index 87b618309..118cf00f9 100644 --- a/src/bun_js.zig +++ b/src/bun_js.zig @@ -57,10 +57,9 @@ pub const Run = struct { .ctx = ctx, .entry_path = entry_path, }; + run.vm.argv = ctx.passthrough; run.vm.arena = &run.arena; - run.vm.argv = ctx.positionals; - if (ctx.debug.macros) |macros| { run.vm.bundler.options.macro_remap = macros; } |