aboutsummaryrefslogtreecommitdiff
path: root/test/bun.js/console/console-iterator-run.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/bun.js/console/console-iterator-run.js')
-rw-r--r--test/bun.js/console/console-iterator-run.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/bun.js/console/console-iterator-run.js b/test/bun.js/console/console-iterator-run.js
new file mode 100644
index 000000000..7664c85a1
--- /dev/null
+++ b/test/bun.js/console/console-iterator-run.js
@@ -0,0 +1,3 @@
+for await (const line of console) {
+ console.write(line);
+}