Skip to content

Commit 0ffc024

Browse files
committed
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 db5f3ba commit 0ffc024

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

index.bs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1266,8 +1266,8 @@ runs these steps:
12661266
|head|, |data| and |tail|.
12671267
1. If the operations modifying |stream|'s [=[[buffer]]=] in the
12681268
previous steps failed due to exceeding the [=storage quota=],
1269-
[=/reject=] |p| with a "{{QuotaExceededError}}" {{DOMException}}
1270-
and abort these steps, leaving |stream|'s [=[[buffer]]=] unmodified.
1269+
[=/reject=] |p| with a {{QuotaExceededError}} and abort these steps,
1270+
leaving |stream|'s [=[[buffer]]=] unmodified.
12711271

12721272
Note: [=Storage quota=] only applies to files stored in a
12731273
[=/bucket file system=].
@@ -1294,8 +1294,8 @@ runs these steps:
12941294
concating |stream|'s [=[[buffer]]=] with a [=byte sequence=]
12951295
containing |newSize|-|oldSize| `0x00` bytes.
12961296
1. If the operation in the previous step failed due to exceeding the [=storage quota=],
1297-
[=/reject=] |p| with a "{{QuotaExceededError}}" {{DOMException}} and
1298-
abort these steps, leaving |stream|'s [=[[buffer]]=] unmodified.
1297+
[=/reject=] |p| with a {{QuotaExceededError}} and abort these steps,
1298+
leaving |stream|'s [=[[buffer]]=] unmodified.
12991299

13001300
Note: [=Storage quota=] only applies to files stored in a
13011301
[=/bucket file system=].
@@ -1542,7 +1542,7 @@ The <dfn method for=FileSystemSyncAccessHandle>write(|buffer|, {{FileSystemReadW
15421542
|oldSize| &minus; (|writePosition| + |bufferSize|) bytes of |fileContents|.
15431543
1. Let |newSize| be |head|'s [=byte sequence/length=] + |bufferSize| + |tail|'s [=byte sequence/length=].
15441544
1. If |newSize| &minus; |oldSize| exceeds the available [=storage quota=],
1545-
[=throw=] a "{{QuotaExceededError}}" {{DOMException}}.
1545+
[=throw=] a {{QuotaExceededError}}.
15461546
1. Set [=this=]'s [=FileSystemSyncAccessHandle/[[file]]=]'s
15471547
[=file entry/binary data=] to the concatenation of
15481548
|head|, the contents of |buffer| and |tail|.
@@ -1586,7 +1586,7 @@ The <dfn method for=FileSystemSyncAccessHandle>truncate(|newSize|)</dfn> method
15861586
|newSize|, [=throw=] a {{TypeError}}.
15871587
1. If |newSize| is larger than |oldSize|:
15881588
1. If |newSize| &minus; |oldSize| exceeds the available [=storage quota=],
1589-
[=throw=] a "{{QuotaExceededError}}" {{DOMException}}.
1589+
[=throw=] a {{QuotaExceededError}}.
15901590
1. Set [=this=]'s [=FileSystemSyncAccessHandle/[[file]]=]'s to a
15911591
[=byte sequence=] formed by concatenating |fileContents| with a
15921592
[=byte sequence=] containing |newSize| &minus; |oldSize| 0x00 bytes.

0 commit comments

Comments
 (0)