Skip to content

error printer: print an uncaught non-Error value at the console depth - #39637

Closed
robobun wants to merge 6 commits into
mainfrom
farm/78bf8981/uncaught-non-error-depth
Closed

robobun wants to merge 6 commits into
mainfrom
farm/78bf8981/uncaught-non-error-depth

error printer: print an uncaught non-Error value at the console depth

ffd304b
Select commit
Loading
Failed to load commit list.
Claude / Claude Code Review completed Aug 19, 2026 in 10m 53s

Code review found 1 potential issue

Found 2 candidates, confirmed 1. See review comments for details.

Details

Severity Count
🔴 Important 0
🟡 Nit 1
🟣 Pre-existing 0
Severity File:Line Issue
🟡 Nit test/js/bun/util/reportError.test.ts:135-143 Test helper pipes stdout but never drains it

Annotations

Check warning on line 143 in test/js/bun/util/reportError.test.ts

See this annotation in the file changed.

@claude claude / Claude Code Review

Test helper pipes stdout but never drains it

The `run` helper sets `stdout: "pipe"` but only awaits `[proc.stderr.text(), proc.exited]` — stdout is never drained. Either add `proc.stdout.text()` to the `Promise.all` (and return it in the object) or drop `stdout: "pipe"`; the `bun test ./depth.test.ts` case does write a banner to stdout.