diff options
author | 2022-11-23 21:31:38 -0800 | |
---|---|---|
committer | 2022-11-23 21:31:38 -0800 | |
commit | bddf484c2c7c8d3aadf715f0d908516ed45caeeb (patch) | |
tree | ee7ce4eeb80b44dd44c112bf0af7bfc176f68185 /test/bun.js/stdin-repro.js | |
parent | 21531f1e80327f3c64e17fb3069c6bb38e8aad0c (diff) | |
download | bun-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.js | 5 |
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()); + } +} |