| 5170 | return esValue[implSymbol].has(...args); |
| 5171 | } |
| 5172 | set(name, value) { |
| 5173 | const esValue = this !== null && this !== void 0 ? this : globalObject; |
| 5174 | if (!exports2.is(esValue)) { |
| 5175 | throw new globalObject.TypeError("'set' called on an object that is not a valid instance of URLSearchParams."); |
| 5176 | } |
| 5177 | if (arguments.length < 2) { |
| 5178 | throw new globalObject.TypeError( |
| 5179 | `Failed to execute 'set' on 'URLSearchParams': 2 arguments required, but only ${arguments.length} present.` |
| 5180 | ); |
| 5181 | } |
| 5182 | const args = []; |
| 5183 | { |
| 5184 | let curArg = arguments[0]; |
| 5185 | curArg = conversions["USVString"](curArg, { |
| 5186 | context: "Failed to execute 'set' on 'URLSearchParams': parameter 1", |
| 5187 | globals: globalObject |
| 5188 | }); |
| 5189 | args.push(curArg); |
| 5190 | } |
| 5191 | { |
| 5192 | let curArg = arguments[1]; |
| 5193 | curArg = conversions["USVString"](curArg, { |
| 5194 | context: "Failed to execute 'set' on 'URLSearchParams': parameter 2", |
| 5195 | globals: globalObject |
| 5196 | }); |
| 5197 | args.push(curArg); |
| 5198 | } |
| 5199 | return utils.tryWrapperForImpl(esValue[implSymbol].set(...args)); |
| 5200 | } |
| 5201 | sort() { |
| 5202 | const esValue = this !== null && this !== void 0 ? this : globalObject; |
| 5203 | if (!exports2.is(esValue)) { |