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