()
| 5296 | }); |
| 5297 | utils.define(ctorRegistry["URLSearchParams Iterator"], { |
| 5298 | next() { |
| 5299 | const internal = this && this[utils.iterInternalSymbol]; |
| 5300 | if (!internal) { |
| 5301 | throw new globalObject.TypeError("next() called on a value that is not a URLSearchParams iterator object"); |
| 5302 | } |
| 5303 | const { target, kind: kind3, index } = internal; |
| 5304 | const values = Array.from(target[implSymbol]); |
| 5305 | const len = values.length; |
| 5306 | if (index >= len) { |
| 5307 | return newObjectInRealm(globalObject, { value: void 0, done: true }); |
| 5308 | } |
| 5309 | const pair = values[index]; |
| 5310 | internal.index = index + 1; |
| 5311 | return newObjectInRealm(globalObject, utils.iteratorResult(pair.map(utils.tryWrapperForImpl), kind3)); |
| 5312 | } |
| 5313 | }); |
| 5314 | Object.defineProperty(globalObject, interfaceName, { |
| 5315 | configurable: true, |
no test coverage detected
searching dependent graphs…