MCPcopy
hub / github.com/di-sukharev/opencommit / append

Method append

out/cli.cjs:51941–51954  ·  view source on GitHub ↗
(name, value, filename = void 0)

Source from the content-addressed store, hash-verified

51939 throw webidl.errors.conversionFailed({
51940 prefix: "FormData constructor",
51941 argument: "Argument 1",
51942 types: ["undefined"]
51943 });
51944 }
51945 this[kState] = [];
51946 }
51947 append(name, value, filename = void 0) {
51948 webidl.brandCheck(this, _FormData);
51949 webidl.argumentLengthCheck(arguments, 2, { header: "FormData.append" });
51950 if (arguments.length === 3 && !isBlobLike3(value)) {
51951 throw new TypeError(
51952 "Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'"
51953 );
51954 }
51955 name = webidl.converters.USVString(name);
51956 value = isBlobLike3(value) ? webidl.converters.Blob(value, { strict: false }) : webidl.converters.USVString(value);
51957 filename = arguments.length === 3 ? webidl.converters.USVString(filename) : void 0;

Callers

nothing calls this directly

Calls 3

isBlobLike3Function · 0.85
makeEntryFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected