We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bca05f6 commit eb77eb7Copy full SHA for eb77eb7
lib/buffer.js
@@ -37,7 +37,6 @@ const {
37
ObjectDefineProperty,
38
ObjectPrototypeHasOwnProperty,
39
ObjectSetPrototypeOf,
40
- RangeError,
41
RegExpPrototypeSymbolReplace,
42
StringPrototypeCharCodeAt,
43
StringPrototypeSlice,
@@ -1304,7 +1303,7 @@ function atob(input) {
1304
1303
'The string to be decoded is not correctly encoded.',
1305
'InvalidCharacterError');
1306
case -3: // Possible overflow
1307
- throw new RangeError('The string to be decoded is too long.');
+ throw new ERR_INVALID_ARG_VALUE('input', result, 'The string to be decoded is too long.');
1308
default:
1309
return result;
1310
}
0 commit comments