I took a peek at buffer.Blob.toString() and saw that the type argument was defaulted to itself
| slice(start=0,end=(this[kLength]),type=this[kType]){ |
that is not the case in the browser (it's not what we are doing in fetch-blob) and the spec says it should default the type to a empty string if it's not provided
If the contentType parameter is not provided, let relativeContentType be set to the empty string.
https://w3c.github.io/FileAPI/#slice-method-algo
What is the expected behavior?
newbuffer.Blob([],{type: 'text/html'}).slice().type===''What do you see instead?
newbuffer.Blob([],{type: 'text/html'}).slice().type==='text/html'
I took a peek at
buffer.Blob.toString()and saw that thetypeargument was defaulted to itselfnode/lib/internal/blob.js
Line 179 in 17467d1
that is not the case in the browser (it's not what we are doing in fetch-blob) and the spec says it should default the type to a empty string if it's not provided
What is the expected behavior?
What do you see instead?