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

Method append

github-actions/saucelabs/set-saucelabs-env.js:5199–5213  ·  view source on GitHub ↗
(name, value, filename = void 0)

Source from the content-addressed store, hash-verified

5197 if (form !== void 0) {
5198 throw webidl.errors.conversionFailed({
5199 prefix: "FormData constructor",
5200 argument: "Argument 1",
5201 types: ["undefined"]
5202 });
5203 }
5204 this[kState] = [];
5205 }
5206 append(name, value, filename = void 0) {
5207 webidl.brandCheck(this, _FormData);
5208 const prefix = "FormData.append";
5209 webidl.argumentLengthCheck(arguments, 2, prefix);
5210 if (arguments.length === 3 && !isBlobLike(value)) {
5211 throw new TypeError(
5212 "Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'"
5213 );
5214 }
5215 name = webidl.converters.USVString(name, prefix, "name");
5216 value = isBlobLike(value) ? webidl.converters.Blob(value, prefix, "value", { strict: false }) : webidl.converters.USVString(value, prefix, "value");

Callers

nothing calls this directly

Calls 3

isBlobLikeFunction · 0.70
makeEntryFunction · 0.70
pushMethod · 0.45

Tested by

no test coverage detected