Skip to content

Commit c90e51b

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 28a8342 commit c90e51b

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
@@ -1268,8 +1268,8 @@ runs these steps:
12681268
|head|, |data| and |tail|.
12691269
1. If the operations modifying |stream|'s [=[[buffer]]=] in the
12701270
previous steps failed due to exceeding the [=storage quota=],
1271-
[=/reject=] |p| with a "{{QuotaExceededError}}" {{DOMException}}
1272-
and abort these steps, leaving |stream|'s [=[[buffer]]=] unmodified.
1271+
[=/reject=] |p| with a {{QuotaExceededError}} and abort these steps,
1272+
leaving |stream|'s [=[[buffer]]=] unmodified.
12731273

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

13021302
Note: [=Storage quota=] only applies to files stored in a
13031303
[=/bucket file system=].
@@ -1544,7 +1544,7 @@ The <dfn method for=FileSystemSyncAccessHandle>write(|buffer|, {{FileSystemReadW
15441544
|oldSize| &minus; (|writePosition| + |bufferSize|) bytes of |fileContents|.
15451545
1. Let |newSize| be |head|'s [=byte sequence/length=] + |bufferSize| + |tail|'s [=byte sequence/length=].
15461546
1. If |newSize| &minus; |oldSize| exceeds the available [=storage quota=],
1547-
[=throw=] a "{{QuotaExceededError}}" {{DOMException}}.
1547+
[=throw=] a {{QuotaExceededError}}.
15481548
1. Set [=this=]'s [=FileSystemSyncAccessHandle/[[file]]=]'s
15491549
[=file entry/binary data=] to the concatenation of
15501550
|head|, the contents of |buffer| and |tail|.
@@ -1588,7 +1588,7 @@ The <dfn method for=FileSystemSyncAccessHandle>truncate(|newSize|)</dfn> method
15881588
|newSize|, [=throw=] a {{TypeError}}.
15891589
1. If |newSize| is larger than |oldSize|:
15901590
1. If |newSize| &minus; |oldSize| exceeds the available [=storage quota=],
1591-
[=throw=] a "{{QuotaExceededError}}" {{DOMException}}.
1591+
[=throw=] a {{QuotaExceededError}}.
15921592
1. Set [=this=]'s [=FileSystemSyncAccessHandle/[[file]]=]'s to a
15931593
[=byte sequence=] formed by concatenating |fileContents| with a
15941594
[=byte sequence=] containing |newSize| &minus; |oldSize| 0x00 bytes.

0 commit comments

Comments
 (0)