| 16473 | */ |
| 16474 | delete(_0) { |
| 16475 | return __async(this, arguments, function* (cacheName) { |
| 16476 | webidl.brandCheck(this, _CacheStorage); |
| 16477 | const prefix = "CacheStorage.delete"; |
| 16478 | webidl.argumentLengthCheck(arguments, 1, prefix); |
| 16479 | cacheName = webidl.converters.DOMString(cacheName, prefix, "cacheName"); |
| 16480 | return __privateGet(this, _caches).delete(cacheName); |
| 16481 | }); |
| 16482 | } |
| 16483 | /** |
| 16484 | * @see https://w3c.github.io/ServiceWorker/#cache-storage-keys |
| 16485 | * @returns {Promise<string[]>} |
| 16486 | */ |
| 16487 | keys() { |
| 16488 | return __async(this, null, function* () { |
| 16489 | webidl.brandCheck(this, _CacheStorage); |
| 16490 | const keys = __privateGet(this, _caches).keys(); |
| 16491 | return [...keys]; |
| 16492 | }); |
| 16493 | } |
| 16494 | }; |
| 16495 | _caches = new WeakMap(); |
| 16496 | var CacheStorage = _CacheStorage; |
| 16497 | Object.defineProperties(CacheStorage.prototype, { |
| 16498 | [Symbol.toStringTag]: { |
| 16499 | value: "CacheStorage", |
| 16500 | configurable: true |
| 16501 | }, |
| 16502 | match: kEnumerableProperty, |
| 16503 | has: kEnumerableProperty, |