Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 7840a39

Browse files
meixgjuanarbol
authored andcommittedApr 6, 2022
buffer: improve Blob constructor error message when passing a string
resolve: #38856 PR-URL: #42338 Fixes: #38856 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent cbcb241 commit 7840a39

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)
Please sign in to comment.