Skip to content

Commit

Permalink
avoid console.error, use Bun.write(Bun.stderr, ...) instead
Browse files Browse the repository at this point in the history
This should fix failures of the new test in CI because of escape
sequences injected by console.error.

Once bun-debug is fixed to print debug output to stderr, this test
will need adjusting.
  • Loading branch information
argosphil committed Feb 8, 2024
1 parent 4f5a10f commit bfef103
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/js/bun/io/timed-stderr-output.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
for (let i = 0; i <= 20; i++) {
console.error(i);
await Bun.write(Bun.stderr, i + "\n");
await new Promise(r => setTimeout(r, 100));
}

0 comments on commit bfef103

Please sign in to comment.