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

Function formData

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

Source from the content-addressed store, hash-verified

5813 iterator = action(object)[Symbol.asyncIterator]();
5814 });
5815 },
5816 pull(controller) {
5817 return __async(this, null, function* () {
5818 const { value, done } = yield iterator.next();
5819 if (done) {
5820 queueMicrotask(() => {
5821 var _a;
5822 controller.close();
5823 (_a = controller.byobRequest) == null ? void 0 : _a.respond(0);
5824 });
5825 } else {
5826 if (!isErrored(stream)) {
5827 const buffer = new Uint8Array(value);
5828 if (buffer.byteLength) {
5829 controller.enqueue(buffer);
5830 }
5831 }
5832 }
5833 return controller.desiredSize > 0;
5834 });
5835 },
5836 cancel(reason) {
5837 return __async(this, null, function* () {
5838 yield iterator.return();
5839 });
5840 },
5841 type: "bytes"
5842 });
5843 }
5844 const body = { stream, source, length };
5845 return [body, type];
5846 }

Callers

nothing calls this directly

Calls 5

consumeBodyFunction · 0.70
bodyMimeTypeFunction · 0.70
multipartFormDataParserFunction · 0.70
toStringMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected