Skip to content

Commit eb77eb7

Browse files
committed
buffer: fix lint-js
1 parent bca05f6 commit eb77eb7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/buffer.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ const {
3737
ObjectDefineProperty,
3838
ObjectPrototypeHasOwnProperty,
3939
ObjectSetPrototypeOf,
40-
RangeError,
4140
RegExpPrototypeSymbolReplace,
4241
StringPrototypeCharCodeAt,
4342
StringPrototypeSlice,
@@ -1304,7 +1303,7 @@ function atob(input) {
13041303
'The string to be decoded is not correctly encoded.',
13051304
'InvalidCharacterError');
13061305
case -3: // Possible overflow
1307-
throw new RangeError('The string to be decoded is too long.');
1306+
throw new ERR_INVALID_ARG_VALUE('input', result, 'The string to be decoded is too long.');
13081307
default:
13091308
return result;
13101309
}

0 commit comments

Comments
 (0)