diff options
author | 2023-03-22 18:09:51 -0700 | |
---|---|---|
committer | 2023-03-22 18:09:51 -0700 | |
commit | 31c2fea74af66d60dceab608b1cfdd9a3f08a7db (patch) | |
tree | 97f871a571ed2d48d3ef2d92240b3dcc0cdbf6b1 /test/js/node/process/stdio-test-instance-a-lot.js | |
parent | a5f92224b586289fc72f0abdb68b08eef9f017db (diff) | |
download | bun-31c2fea74af66d60dceab608b1cfdd9a3f08a7db.tar.gz bun-31c2fea74af66d60dceab608b1cfdd9a3f08a7db.tar.zst bun-31c2fea74af66d60dceab608b1cfdd9a3f08a7db.zip |
A couple bug fixes (#2458)
* fix valid status code range
* update path
* highwatermark option
* throw DOMException
* remove extra transpiler output
* more transpiler tests
* comment
* get index not quickly
* replace with `getDirectIndex`
* update abort test
* throw out of range status code
* promisify test fix
* move stdio test instance files
* working crypto tests
* allow duplicate set-cookie headers
* different formatting
* revert, fix will be in different pr
* it is called
* use min buffer size
* fix url tests
* null origin for other protocols
* remove overload
* add very large file test
* await
* coerce to int64
* 64
* no cast
* add todo blob url tests
* use `tryConvertToInt52`
Diffstat (limited to 'test/js/node/process/stdio-test-instance-a-lot.js')
-rw-r--r-- | test/js/node/process/stdio-test-instance-a-lot.js | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/js/node/process/stdio-test-instance-a-lot.js b/test/js/node/process/stdio-test-instance-a-lot.js new file mode 100644 index 000000000..71815ddea --- /dev/null +++ b/test/js/node/process/stdio-test-instance-a-lot.js @@ -0,0 +1,19 @@ +import { ArrayBufferSink } from "bun"; + +const sink = new ArrayBufferSink(); + +sink.write("hello"); +sink.write(" "); +sink.write("world"); +sink.write(new TextEncoder().encode("hello again|")); +sink.write(new TextEncoder().encode("😋 Get Emoji — All Emojis to ✂️ Copy and 📋 Paste 👌")); + +const string = Buffer.from(sink.end()).toString().repeat(9999); + +if (process.env.TEST_STDIO_STRING) { + const result = string; + process.stdout.write(result); +} else { + const result = Buffer.from(string); + process.stdout.write(result); +} |