aboutsummaryrefslogtreecommitdiff
path: root/test/bun.js/print-process-args.js
diff options
context:
space:
mode:
authorGravatar Dylan Conway <35280289+dylan-conway@users.noreply.github.com> 2022-10-18 20:11:17 -0700
committerGravatar GitHub <noreply@github.com> 2022-10-18 20:11:17 -0700
commit1835e4b9f93ba9324bca2bed588f42c93a2772de (patch)
tree70707afdc82e736a3b7eb3818e22019104b81264 /test/bun.js/print-process-args.js
parent8ca49f906acdd4f8bdb9f42c6b5c47b098308dcd (diff)
downloadbun-1835e4b9f93ba9324bca2bed588f42c93a2772de.tar.gz
bun-1835e4b9f93ba9324bca2bed588f42c93a2772de.tar.zst
bun-1835e4b9f93ba9324bca2bed588f42c93a2772de.zip
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
Diffstat (limited to 'test/bun.js/print-process-args.js')
-rw-r--r--test/bun.js/print-process-args.js4
1 files changed, 4 insertions, 0 deletions
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