Skip to content

Commit 2875684

Browse files
meixgtargos
authored andcommitted
buffer: improve Blob constructor error message when passing a string
resolve: #38856 PR-URL: #42338 Fixes: #38856 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent df22496 commit 2875684

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/blob.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ class Blob {
139139
if (sources === null ||
140140
typeof sources[SymbolIterator] !== 'function' ||
141141
typeof sources === 'string') {
142-
throw new ERR_INVALID_ARG_TYPE('sources', 'Iterable', sources);
142+
throw new ERR_INVALID_ARG_TYPE('sources', 'a sequence', sources);
143143
}
144144
validateObject(options, 'options');
145145
let {

0 commit comments

Comments
 (0)