Skip to content

Commit 5d7d4cb

Browse files
Marcos Cáceresmkruisselbrink
authored andcommitted
Change Constructor extAttr to constructor() op (#141)
* Change Constructor extAttr to constructor() op fixes #139 * Fix nit
1 parent 7a0ed1d commit 5d7d4cb

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

index.bs

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -220,10 +220,10 @@ if any such underlying storage exists.
220220
Further normative definition of <a>snapshot state</a> can be found for {{File}}s.
221221

222222
<xmp class="idl">
223-
[Constructor(optional sequence<BlobPart> blobParts,
224-
optional BlobPropertyBag options = {}),
225-
Exposed=(Window,Worker), Serializable]
223+
[Exposed=(Window,Worker), Serializable]
226224
interface Blob {
225+
constructor(optional sequence<BlobPart> blobParts,
226+
optional BlobPropertyBag options = {});
227227

228228
readonly attribute unsigned long long size;
229229
readonly attribute DOMString type;
@@ -643,11 +643,11 @@ and must follow the <dfn export>file type guidelines</dfn> below:
643643
including statistical methods.
644644

645645
<pre class="idl">
646-
[Constructor(sequence&lt;BlobPart> fileBits,
647-
USVString fileName,
648-
optional FilePropertyBag options = {}),
649-
Exposed=(Window,Worker), Serializable]
646+
[Exposed=(Window,Worker), Serializable]
650647
interface File : Blob {
648+
constructor(sequence&lt;BlobPart> fileBits,
649+
USVString fileName,
650+
optional FilePropertyBag options = {});
651651
readonly attribute DOMString name;
652652
readonly attribute long long lastModified;
653653
};
@@ -895,9 +895,9 @@ It is to be used for features that trigger in response to asynchronously reading
895895
## The {{FileReader}} API ## {#APIASynch}
896896

897897
<pre class="idl">
898-
[Constructor, Exposed=(Window,Worker)]
898+
[Exposed=(Window,Worker)]
899899
interface FileReader: EventTarget {
900-
900+
constructor();
901901
// async read methods
902902
void readAsArrayBuffer(Blob blob);
903903
void readAsBinaryString(Blob blob);
@@ -1289,8 +1289,9 @@ This interface provides methods to <dfn id="read-method-sync" lt="synchronous r
12891289
{{File}} or {{Blob}} objects into memory.
12901290

12911291
<pre class="idl">
1292-
[Constructor, Exposed=(DedicatedWorker,SharedWorker)]
1292+
[Exposed=(DedicatedWorker,SharedWorker)]
12931293
interface FileReaderSync {
1294+
constructor();
12941295
// Synchronously return strings
12951296

12961297
ArrayBuffer readAsArrayBuffer(Blob blob);

0 commit comments

Comments
 (0)