Skip to content

Commit 67335df

Browse files
committed
buffer: update error message
1 parent 917e816 commit 67335df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-buffer-alloc.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1086,8 +1086,8 @@ assert.throws(
10861086
{
10871087
code: 'ERR_INVALID_ARG_TYPE',
10881088
name: 'TypeError',
1089-
message: 'The "target" argument must be an instance of Buffer or ' +
1090-
'Uint8Array. Received undefined'
1089+
message: 'The "target" argument must be an instance of Buffer, ' +
1090+
'ArrayBuffer, SharedArrayBuffer, or TypedArray. Received undefined'
10911091
});
10921092

10931093
assert.throws(() => Buffer.from(), {

0 commit comments

Comments
 (0)