From 092b86321c3210b5435deef1d283648eb8ea5a90 Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Wed, 28 Dec 2022 11:21:21 +0200 Subject: log object string correctly (#1674) use `Symbol.toStringTag` of the object or that of its `.prototype` fixes #1584 --- test/bun.js/console/console-iterator-run.js | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 test/bun.js/console/console-iterator-run.js (limited to 'test/bun.js/console/console-iterator-run.js') 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); +} -- cgit v1.2.3