Files
bun.sh/test/js
Claude Bot 4dd2b5989f Fix malformed error message in ReadableStream.getReader
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>
2025-10-22 07:50:42 +00:00
..
2024-12-12 02:07:29 -08:00