diff --git a/html/cross-origin-embedder-policy/require-corp-load-from-cache-storage.https.html b/html/cross-origin-embedder-policy/require-corp-load-from-cache-storage.https.html index b10b2f0b73cca9..65490f0a13821f 100644 --- a/html/cross-origin-embedder-policy/require-corp-load-from-cache-storage.https.html +++ b/html/cross-origin-embedder-policy/require-corp-load-from-cache-storage.https.html @@ -109,7 +109,7 @@ const cache = await caches.open('v1'); if (response_type === 'error') { - await promise_rejects(t, new TypeError(), cache.match(url)); + await promise_rejects(t, 'InvalidAccessError', cache.match(url)); return; }