MCPcopy Create free account
hub / github.com/angular/dev-infra / validateCookieName

Function validateCookieName

github-actions/browserstack/set-browserstack-env.js:16475–16500  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

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,

Callers 1

stringifyFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected