diff options
author | 2022-12-05 11:35:34 -0800 | |
---|---|---|
committer | 2022-12-05 11:35:34 -0800 | |
commit | 0ea8de40871052842f2e342b4c452f6746691487 (patch) | |
tree | a4e1028f90a801324966172e47b9b20533e4ad7a /test/bun.js/console-iterator-run.js | |
parent | 71293033474eea83c47b6c6948f991b1dc37ad22 (diff) | |
download | bun-0ea8de40871052842f2e342b4c452f6746691487.tar.gz bun-0ea8de40871052842f2e342b4c452f6746691487.tar.zst bun-0ea8de40871052842f2e342b4c452f6746691487.zip |
Make `console` an `AsyncIterable`
Diffstat (limited to 'test/bun.js/console-iterator-run.js')
-rw-r--r-- | test/bun.js/console-iterator-run.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/bun.js/console-iterator-run.js b/test/bun.js/console-iterator-run.js new file mode 100644 index 000000000..7664c85a1 --- /dev/null +++ b/test/bun.js/console-iterator-run.js @@ -0,0 +1,3 @@ +for await (const line of console) { + console.write(line); +} |