MCPcopy Create free account
hub / github.com/angular/dev-infra / blob

Function blob

github-actions/browserstack/set-browserstack-env.js:5793–5803  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5791 function bodyMixinMethods(instance) {
5792 const methods = {
5793 blob() {
5794 return consumeBody(this, (bytes) => {
5795 let mimeType = bodyMimeType(this);
5796 if (mimeType === null) {
5797 mimeType = "";
5798 } else if (mimeType) {
5799 mimeType = serializeAMimeType(mimeType);
5800 }
5801 return new Blob2([bytes], { type: mimeType });
5802 }, instance);
5803 },
5804 arrayBuffer() {
5805 return consumeBody(this, (bytes) => {
5806 return new Uint8Array(bytes).buffer;

Callers

nothing calls this directly

Calls 3

consumeBodyFunction · 0.70
bodyMimeTypeFunction · 0.70
serializeAMimeTypeFunction · 0.70

Tested by

no test coverage detected