Skip to content

Commit a54015a

Browse files
committed
buffer: add assert.fail()
1 parent cb09cba commit a54015a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/buffer.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ const {
9999
inspect: utilInspect,
100100
} = require('internal/util/inspect');
101101

102+
const assert = require('internal/assert');
103+
102104
const {
103105
codes: {
104106
ERR_BUFFER_OUT_OF_BOUNDS,
@@ -1302,6 +1304,8 @@ function atob(input) {
13021304
throw lazyDOMException(
13031305
'The string to be decoded is not correctly encoded.',
13041306
'InvalidCharacterError');
1307+
case -3:
1308+
assert.fail('Unrecognized simdutf error');
13051309
default:
13061310
return result;
13071311
}

0 commit comments

Comments
 (0)