* @see https://w3c.github.io/ServiceWorker/#cache-storage-has * @param {string} cacheName * @returns {Promise }
(cacheName)
| 58 | * @returns {Promise<boolean>} |
| 59 | */ |
| 60 | async has (cacheName) { |
| 61 | webidl.brandCheck(this, CacheStorage) |
| 62 | |
| 63 | const prefix = 'CacheStorage.has' |
| 64 | webidl.argumentLengthCheck(arguments, 1, prefix) |
| 65 | |
| 66 | cacheName = webidl.converters.DOMString(cacheName, prefix, 'cacheName') |
| 67 | |
| 68 | // 2.1.1 |
| 69 | // 2.2 |
| 70 | return this.#caches.has(cacheName) |
| 71 | } |
| 72 | |
| 73 | /** |
| 74 | * @see https://w3c.github.io/ServiceWorker/#dom-cachestorage-open |
nothing calls this directly
no test coverage detected