aboutsummaryrefslogtreecommitdiff
path: root/test/bun.js/stdin-repro.js
diff options
context:
space:
mode:
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());
+ }
+}