-
-
Notifications
You must be signed in to change notification settings - Fork 35.6k
Expose Blob as a global #42220
Copy link
Copy link
Closed
Labels
feature requestIssues that request new features to be added to Node.js.Issues that request new features to be added to Node.js.
Metadata
Metadata
Assignees
Labels
feature requestIssues that request new features to be added to Node.js.Issues that request new features to be added to Node.js.
Type
Fields
Give feedbackNo fields configured for issues without a type.
What is the problem this feature will solve?
Increase parity with web APIs. In particular allowing interfaces to more generally associate a content type with a chunk of data in a portable way (leaving it up to the host how the data is actually stored).
And while APIs could accept blobs without having the global, one can't do checks like
value instanceof Blob(i.e. in cases where an API accepts other kinds of objects), or construct blobs directly using the constructor.What is the feature you are proposing to solve the problem?
Expose
buffer.Blobas a globalBloblike is on the web.I am not proposing changing the experimental status however.
What alternatives have you considered?
No response