aboutsummaryrefslogtreecommitdiff
path: root/test/bun.js/stdin-repro.js
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-11-23 21:31:38 -0800
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-11-23 21:31:38 -0800
commitbddf484c2c7c8d3aadf715f0d908516ed45caeeb (patch)
treeee7ce4eeb80b44dd44c112bf0af7bfc176f68185 /test/bun.js/stdin-repro.js
parent21531f1e80327f3c64e17fb3069c6bb38e8aad0c (diff)
downloadbun-bddf484c2c7c8d3aadf715f0d908516ed45caeeb.tar.gz
bun-bddf484c2c7c8d3aadf715f0d908516ed45caeeb.tar.zst
bun-bddf484c2c7c8d3aadf715f0d908516ed45caeeb.zip
Close the streams more
Diffstat (limited to 'test/bun.js/stdin-repro.js')
-rw-r--r--test/bun.js/stdin-repro.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/bun.js/stdin-repro.js b/test/bun.js/stdin-repro.js
new file mode 100644
index 000000000..05daf0637
--- /dev/null
+++ b/test/bun.js/stdin-repro.js
@@ -0,0 +1,5 @@
+while (true) {
+ for await (let chunk of Bun.stdin.stream()) {
+ console.log(new Buffer(chunk).toString());
+ }
+}