-
-
Notifications
You must be signed in to change notification settings - Fork 33.8k
Closed
Description
Lines 86 to 98 in d4bea09
| } else if (!isArrayBufferView(source)) { | |
| throw new ERR_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
new window.Blob([null]).text() // "null"
new buffer.Blob([null]) // TypeError [ERR_INVALID_ARG_TYPE]: The "source" argument ...Metadata
Metadata
Assignees
Labels
No labels