| 5031 | return exports2.setup(Object.create(new.target.prototype), globalObject, args); |
| 5032 | } |
| 5033 | append(name, value) { |
| 5034 | const esValue = this !== null && this !== void 0 ? this : globalObject; |
| 5035 | if (!exports2.is(esValue)) { |
| 5036 | throw new globalObject.TypeError( |
| 5037 | "'append' called on an object that is not a valid instance of URLSearchParams." |
| 5038 | ); |
| 5039 | } |
| 5040 | if (arguments.length < 2) { |
| 5041 | throw new globalObject.TypeError( |
| 5042 | `Failed to execute 'append' on 'URLSearchParams': 2 arguments required, but only ${arguments.length} present.` |
| 5043 | ); |
| 5044 | } |
| 5045 | const args = []; |
| 5046 | { |
| 5047 | let curArg = arguments[0]; |
| 5048 | curArg = conversions["USVString"](curArg, { |
| 5049 | context: "Failed to execute 'append' on 'URLSearchParams': parameter 1", |
| 5050 | globals: globalObject |
| 5051 | }); |
| 5052 | args.push(curArg); |
| 5053 | } |
| 5054 | { |
| 5055 | let curArg = arguments[1]; |
| 5056 | curArg = conversions["USVString"](curArg, { |
| 5057 | context: "Failed to execute 'append' on 'URLSearchParams': parameter 2", |
| 5058 | globals: globalObject |
| 5059 | }); |
| 5060 | args.push(curArg); |
| 5061 | } |
| 5062 | return utils.tryWrapperForImpl(esValue[implSymbol].append(...args)); |
| 5063 | } |
| 5064 | delete(name) { |
| 5065 | const esValue = this !== null && this !== void 0 ? this : globalObject; |
| 5066 | if (!exports2.is(esValue)) { |