| }elseif(!isArrayBufferView(source)){ |
| thrownewERR_INVALID_ARG_TYPE( |
| 'source', |
| [ |
| 'string', |
| 'ArrayBuffer', |
| 'SharedArrayBuffer', |
| 'Buffer', |
| 'TypedArray', |
| 'DataView' |
| ], |
| source); |
| } |
it should instead be casted into a string if you don't know how to handle the "blob part" not to throw a error
newwindow.Blob([null]).text()// "null"newbuffer.Blob([null])// TypeError [ERR_INVALID_ARG_TYPE]: The "source" argument ...
node/lib/internal/blob.js
Lines 86 to 98 in d4bea09
it should instead be casted into a string if you don't know how to handle the "blob part" not to throw a error