From 1835e4b9f93ba9324bca2bed588f42c93a2772de Mon Sep 17 00:00:00 2001 From: Dylan Conway <35280289+dylan-conway@users.noreply.github.com> Date: Tue, 18 Oct 2022 20:11:17 -0700 Subject: get args fix (#1346) * fix args.len < capacity check * tests for args * file name change * switch to stdout.writer, use JSON for parsing * bun-debug or bun * missing arg --- test/bun.js/print-process-args.js | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 test/bun.js/print-process-args.js (limited to 'test/bun.js/print-process-args.js') diff --git a/test/bun.js/print-process-args.js b/test/bun.js/print-process-args.js new file mode 100644 index 000000000..3d4540053 --- /dev/null +++ b/test/bun.js/print-process-args.js @@ -0,0 +1,4 @@ +var writer = Bun.stdout.writer() +writer.write(JSON.stringify(process.argv)); +await writer.flush(true); +process.exit(0); \ No newline at end of file -- cgit v1.2.3