Skip to content

Commit

Permalink
Bug 1616285 [wpt PR 21856] - COEP: change cache.match() exception, a=…
Browse files Browse the repository at this point in the history
…testonly

Automatic update from web-platform-tests
COEP: change cache.match() exception

TypeError is more consistent with the overall API.

See w3c/ServiceWorker#1490 (comment).

--

wpt-commits: 7feb47d66b5197715742d0aaff8c9cf0230b8cd1
wpt-pr: 21856
  • Loading branch information
annevk authored and moz-wptsync-bot committed Feb 24, 2020
1 parent d9c622c commit 948b112
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
const cache = await caches.open('v1');

if (response_type === 'error') {
await promise_rejects_dom(t, 'InvalidAccessError', cache.match(url));
await promise_rejects_js(t, TypeError, cache.match(url));
return;
}

Expand Down

0 comments on commit 948b112

Please sign in to comment.