Skip to content

Conversation

haramj
Copy link
Contributor

@haramj haramj commented Oct 8, 2025

This commit resolves a TODO comment in lib/buffer.js by changing the error thrown by atob() during a potential overflow condition.

Modified lib/buffer.js to instantiate and throw new ERR_INVALID_ARG_VALUE('input', result, 'The string to be decoded is too long.'); for the overflow case (result === -3).

This change makes the atob implementation more robust and developer-friendly.
@anonrig

@nodejs-github-bot nodejs-github-bot added buffer Issues and PRs related to the buffer subsystem. needs-ci PRs that need a full CI run. labels Oct 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
buffer Issues and PRs related to the buffer subsystem. needs-ci PRs that need a full CI run.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants