(_0)
| 16345 | throw webidl.errors.exception({ |
| 16346 | header: "Cache.#batchCacheOperations", |
| 16347 | message: "expected http or https scheme" |
| 16348 | }); |
| 16349 | } |
| 16350 | if (r.method !== "GET") { |
| 16351 | throw webidl.errors.exception({ |
| 16352 | header: "Cache.#batchCacheOperations", |
| 16353 | message: "not get method" |
| 16354 | }); |
| 16355 | } |
| 16356 | if (operation.options != null) { |
| 16357 | throw webidl.errors.exception({ |
| 16358 | header: "Cache.#batchCacheOperations", |
| 16359 | message: "options must not be defined" |
| 16360 | }); |
| 16361 | } |
| 16362 | requestResponses = __privateMethod(this, _queryCache, queryCache_fn).call(this, operation.request); |
| 16363 | for (const requestResponse of requestResponses) { |
| 16364 | const idx = cache.indexOf(requestResponse); |
| 16365 | assert(idx !== -1); |
| 16366 | cache.splice(idx, 1); |
| 16367 | } |
| 16368 | cache.push([operation.request, operation.response]); |
| 16369 | addedItems.push([operation.request, operation.response]); |
| 16370 | } |
| 16371 | resultList.push([operation.request, operation.response]); |
| 16372 | } |
nothing calls this directly
no test coverage detected