(name, value, filename = void 0)
| 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; |
nothing calls this directly
no test coverage detected