Skip to content

Commit 3fbfd65

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎lib/internal/blob.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ class Blob{
139139
if(sources===null||
140140
typeofsources[SymbolIterator]!=='function'||
141141
typeofsources==='string'){
142-
thrownewERR_INVALID_ARG_TYPE('sources','Iterable',sources);
142+
thrownewERR_INVALID_ARG_TYPE('sources','a sequence',sources);
143143
}
144144
validateObject(options,'options');
145145
let{

0 commit comments

Comments
(0)