aboutsummaryrefslogtreecommitdiff
path: root/test/bun.js/console-iterator-run.js
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-12-05 11:35:34 -0800
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-12-05 11:35:34 -0800
commit0ea8de40871052842f2e342b4c452f6746691487 (patch)
treea4e1028f90a801324966172e47b9b20533e4ad7a /test/bun.js/console-iterator-run.js
parent71293033474eea83c47b6c6948f991b1dc37ad22 (diff)
downloadbun-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.js3
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);
+}