mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 18:38:55 +00:00
The error message for an invalid 'mode' argument in ReadableStream.getReader was missing the "must be" part, resulting in a confusing error message like: "The argument 'mode' byob. Received 'invalid'" This fix updates the error message to properly say: "The argument 'mode' must be 'byob'. Received 'invalid'" A regression test has been added to ensure the error message is correct. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>