Skip to content

Commit cb09cba

Browse files
authored
buffer: remove unreachable overflow check in atob
1 parent eb77eb7 commit cb09cba

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lib/buffer.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1302,8 +1302,6 @@ function atob(input) {
13021302
throw lazyDOMException(
13031303
'The string to be decoded is not correctly encoded.',
13041304
'InvalidCharacterError');
1305-
case -3: // Possible overflow
1306-
throw new ERR_INVALID_ARG_VALUE('input', result, 'The string to be decoded is too long.');
13071305
default:
13081306
return result;
13091307
}

0 commit comments

Comments
 (0)