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 type = object.type;
5792 }
5793 } else if (typeof object[Symbol.asyncIterator] === "function") {
5794 if (keepalive) {
5795 throw new TypeError("keepalive");
5796 }
5797 if (util.isDisturbed(object) || object.locked) {
5798 throw new TypeError(
5799 "Response body object should not be disturbed or locked"
5800 );
5801 }
5802 stream = object instanceof ReadableStream ? object : ReadableStreamFrom(object);
5803 }
5804 if (typeof source === "string" || util.isBuffer(source)) {
5805 length = Buffer.byteLength(source);
5806 }

Callers

nothing calls this directly

Calls 3

consumeBodyFunction · 0.70
bodyMimeTypeFunction · 0.70
serializeAMimeTypeFunction · 0.70

Tested by

no test coverage detected