From 397cb6600b831a1ab5daeac07a5e2d8f113f7c71 Mon Sep 17 00:00:00 2001 From: Jarred SUmner Date: Fri, 25 Nov 2022 22:53:21 -0800 Subject: Update test --- test/bun.js/stdin-repro.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'test/bun.js/stdin-repro.js') diff --git a/test/bun.js/stdin-repro.js b/test/bun.js/stdin-repro.js index 5f945be7c..02840d00b 100644 --- a/test/bun.js/stdin-repro.js +++ b/test/bun.js/stdin-repro.js @@ -1,7 +1,10 @@ -var count = 5; +var stdout = Bun.stdout.writer(); +console.error("Started"); +var count = 0; for await (let chunk of Bun.stdin.stream()) { const str = new Buffer(chunk).toString(); - console.error("how many?", count, chunk.byteLength); - count -= str.split("\n").length; - console.log(str); + stdout.write(str); + stdout.flush(); + count++; } +console.error("Finished with", count); -- cgit v1.2.3 y Unnamed repository; edit this file 'description' to name the repository.
aboutsummaryrefslogtreecommitdiff
path: root/examples/blog/public/assets (unfollow)
AgeCommit message (Expand)AuthorFilesLines
2022-06-27Refactor: remove Deno shim to esbuild "banner" (#3734)Gravatar Ben Holmes 7-15/+22
2022-06-27[ci] formatGravatar FredKSchott 9-23/+25
2022-06-27update telemetry to support more anonymized project id (#3713)Gravatar Fred K. Schott 20-351/+311
2022-06-27SImplify "astro add" by removing confusing multi-select (#3715)Gravatar Fred K. Schott 13-258/+157