Skip to content

Commit 7a0ed1d

Browse files
Marcos Cáceresmkruisselbrink
authored andcommitted
Update to Web IDL changes to optional dictionary defaulting (#134)
1 parent e17e0dc commit 7a0ed1d

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

index.bs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ Further normative definition of <a>snapshot state</a> can be found for {{File}}s
221221

222222
<xmp class="idl">
223223
[Constructor(optional sequence<BlobPart> blobParts,
224-
optional BlobPropertyBag options),
224+
optional BlobPropertyBag options = {}),
225225
Exposed=(Window,Worker), Serializable]
226226
interface Blob {
227227

@@ -298,8 +298,7 @@ user agents must run the following steps:
298298

299299
1. Let |bytes| be the result of [=processing blob parts=] given {{blobParts}} and {{Blob/Blob(blobParts, options)/options}}.
300300

301-
1. If the {{BlobPropertyBag/type}} member of the optional {{Blob/Blob(blobParts, options)/options}} argument is provided
302-
and is not the empty string,
301+
1. If the {{BlobPropertyBag/type}} member of the {{Blob/Blob(blobParts, options)/options}} argument is not the empty string,
303302
run the following sub-steps:
304303

305304
1. Let |t| be the {{BlobPropertyBag/type}} dictionary member.
@@ -646,7 +645,7 @@ and must follow the <dfn export>file type guidelines</dfn> below:
646645
<pre class="idl">
647646
[Constructor(sequence&lt;BlobPart> fileBits,
648647
USVString fileName,
649-
optional FilePropertyBag options),
648+
optional FilePropertyBag options = {}),
650649
Exposed=(Window,Worker), Serializable]
651650
interface File : Blob {
652651
readonly attribute DOMString name;
@@ -699,8 +698,7 @@ user agents must run the following steps:
699698
Note: Underlying OS filesystems use differing conventions for file name;
700699
with constructed files, mandating UTF-16 lessens ambiquity when file names are converted to <a>byte</a> sequences.
701700

702-
3. If the optional {{FilePropertyBag}} dictionary argument is used,
703-
then run the following substeps:
701+
3. Process {{FilePropertyBag}} dictionary argument by running the following substeps:
704702

705703
1. If the {{BlobPropertyBag/type}} member is provided and is not the empty string,
706704
let |t| be set to the {{BlobPropertyBag/type}} dictionary member.

0 commit comments

Comments
 (0)