MCPcopy Index your code
hub / github.com/nodejs/node / append

Method append

deps/undici/undici.js:6180–6195  ·  view source on GitHub ↗
(name, value, filename = void 0)

Source from the content-addressed store, hash-verified

6178 }
6179 }
6180 append(name, value, filename = void 0) {
6181 webidl.brandCheck(this, _FormData);
6182 const prefix = "FormData.append";
6183 webidl.argumentLengthCheck(arguments, 2, prefix);
6184 name = webidl.converters.USVString(name);
6185 if (arguments.length === 3 || webidl.is.Blob(value)) {
6186 value = webidl.converters.Blob(value, prefix, "value");
6187 if (filename !== void 0) {
6188 filename = webidl.converters.USVString(filename);
6189 }
6190 } else {
6191 value = webidl.converters.USVString(value);
6192 }
6193 const entry = makeEntry(name, value, filename);
6194 this.#state.push(entry);
6195 }
6196 delete(name) {
6197 webidl.brandCheck(this, _FormData);
6198 const prefix = "FormData.delete";

Callers

nothing calls this directly

Calls 5

brandCheckMethod · 0.80
argumentLengthCheckMethod · 0.80
USVStringMethod · 0.80
makeEntryFunction · 0.70
pushMethod · 0.45

Tested by

no test coverage detected