Skip to content

Commit b3968ee

Browse files
authored
Update QuotaExceededError usage
QuotaExceededError is graduating from being a DOMException name into a new error class, in whatwg/webidl#1465. Update creation sites to reflect this. For now, the quota and requested properties are left at their default (null). Future work could include setting them in an informative fashion.
1 parent 3d83bed commit b3968ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/index.bs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2310,7 +2310,7 @@ spec: storage; urlPrefix: https://storage.spec.whatwg.org/
23102310
1. Resolve |promise| with a new {{Cache}} object that represents |value|.
23112311
1. Abort these steps.
23122312
1. Let |cache| be a new [=request response list=].
2313-
1. [=map/Set=] the [=relevant name to cache map=][|cacheName|] to |cache|. If this cache write operation failed due to exceeding the granted quota limit, reject |promise| with a "{{QuotaExceededError}}" {{DOMException}} and abort these steps.
2313+
1. [=map/Set=] the [=relevant name to cache map=][|cacheName|] to |cache|. If this cache write operation failed due to exceeding the granted quota limit, reject |promise| with a {{QuotaExceededError}} and abort these steps.
23142314
1. Resolve |promise| with a new {{Cache}} object that represents |cache|.
23152315
1. Return |promise|.
23162316
</section>
@@ -4071,7 +4071,7 @@ spec: storage; urlPrefix: https://storage.spec.whatwg.org/
40714071
1. [=list/For each=] |requestResponse| of |requestResponses|:
40724072
1. [=list/Remove=] the [=list/item=] whose value matches |requestResponse| from |cache|.
40734073
1. [=list/Append=] |operation|'s [=cache batch operation/request=]/|operation|'s [=cache batch operation/response=] to |cache|.
4074-
1. If the cache write operation in the previous two steps failed due to exceeding the granted quota limit, <a>throw</a> a "{{QuotaExceededError}}" {{DOMException}}.
4074+
1. If the cache write operation in the previous two steps failed due to exceeding the granted quota limit, <a>throw</a> a {{QuotaExceededError}}.
40754075
1. [=list/Append=] |operation|'s [=cache batch operation/request=]/|operation|'s [=cache batch operation/response=] to |addedItems|.
40764076
1. [=Append=] |operation|'s [=cache batch operation/request=]/|operation|'s [=cache batch operation/response=] to |resultList|.
40774077
1. Return |resultList|.

0 commit comments

Comments
 (0)