Skip to content

Commit

Permalink
Only expose FileReaderSync in dedicated and shared workers.
Browse files Browse the repository at this point in the history
This fixes #16
  • Loading branch information
mkruisselbrink committed Feb 3, 2017
1 parent abf6637 commit 6a24b10
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1362,7 +1362,7 @@ This interface provides methods to <dfn id="read-method-sync" lt="synchronous r
{{File}} or {{Blob}} objects into memory.

<pre class="idl">
[Constructor, Exposed=Worker]
[Constructor, Exposed=DedicatedWorker,SharedWorker]
interface FileReaderSync {
// Synchronously return strings

Expand Down
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2150,7 +2150,7 @@ <h4 class="heading settled" data-level="4.1.1" id="file-constructor-params"><spa
<p><code class="idl"><a data-link-type="idl" href="https://heycam.github.io/webidl/#idl-DOMString">DOMString</a></code> elements.</p>
</ul>
<dt>A <dfn class="dfn-paneled idl-code" data-dfn-for="File/File(fileBits, fileName, options)" data-dfn-type="argument" data-export="" id="dfn-fileName"><code>fileName</code></dfn> parameter
<dd>A <code class="idl"><a data-link-type="idl" href="https://heycam.github.io/webidl/#idl-DOMString">DOMString</a></code> parameter representing the name of the file;
<dd>A <code class="idl"><a data-link-type="idl" href="https://heycam.github.io/webidl/#idl-USVString">USVString</a></code> parameter representing the name of the file;
normative conditions for this constructor parameter can be found in <a href="#file-constructor">§4.1 Constructor</a>.
<dt id="def-Properties"><a class="self-link" href="#def-Properties"></a>An optional <code class="idl"><a data-link-type="idl" href="#dfn-FilePropertyBag" id="ref-for-dfn-FilePropertyBag-3">FilePropertyBag</a></code> dictionary
<dd>
Expand Down Expand Up @@ -2823,7 +2823,7 @@ <h3 class="heading settled" data-level="6.6" id="readingOnThreads"><span class="
Workers can avail of both the asynchronous API (the <code class="idl"><a data-link-type="idl" href="#dfn-filereader" id="ref-for-dfn-filereader-19">FileReader</a></code> object) <em>and</em> the synchronous API (the <code class="idl"><a data-link-type="idl" href="#dfn-FileReaderSync" id="ref-for-dfn-FileReaderSync-6">FileReaderSync</a></code> object).</p>
<h4 class="heading settled" data-level="6.6.1" id="FileReaderSync"><span class="secno">6.6.1. </span><span class="content"> The <code class="idl"><a data-link-type="idl" href="#dfn-FileReaderSync" id="ref-for-dfn-FileReaderSync-7">FileReaderSync</a></code> API</span><a class="self-link" href="#FileReaderSync"></a></h4>
<p>This interface provides methods to <dfn class="dfn-paneled" data-dfn-type="dfn" data-lt="synchronous read method" data-noexport="" id="read-method-sync">synchronously read</dfn> <code class="idl"><a data-link-type="idl" href="#dfn-file" id="ref-for-dfn-file-40">File</a></code> or <code class="idl"><a data-link-type="idl" href="#dfn-Blob" id="ref-for-dfn-Blob-69">Blob</a></code> objects into memory.</p>
<pre class="idl highlight def">[<dfn class="nv dfn-paneled idl-code" data-dfn-for="FileReaderSync" data-dfn-type="constructor" data-export="" data-lt="FileReaderSync()" id="dom-filereadersync-filereadersync">Constructor</dfn>, <a class="nv idl-code" data-link-type="extended-attribute" href="https://heycam.github.io/webidl/#Exposed">Exposed</a>=<span class="n">Worker</span>]
<pre class="idl highlight def">[<dfn class="nv dfn-paneled idl-code" data-dfn-for="FileReaderSync" data-dfn-type="constructor" data-export="" data-lt="FileReaderSync()" id="dom-filereadersync-filereadersync">Constructor</dfn>, <a class="nv idl-code" data-link-type="extended-attribute" href="https://heycam.github.io/webidl/#Exposed">Exposed</a>=<span class="n">DedicatedWorker</span>,<a class="nv idl-code" data-link-type="extended-attribute">SharedWorker</a>]
<span class="kt">interface</span> <dfn class="nv dfn-paneled idl-code" data-dfn-type="interface" data-export="" id="dfn-FileReaderSync">FileReaderSync</dfn> {
// Synchronously return strings

Expand Down Expand Up @@ -3902,7 +3902,7 @@ <h2 class="no-num no-ref heading settled" id="idl-index"><span class="content">I

};

[<a class="nv" href="#dom-filereadersync-filereadersync">Constructor</a>, <a class="nv idl-code" data-link-type="extended-attribute" href="https://heycam.github.io/webidl/#Exposed">Exposed</a>=<span class="n">Worker</span>]
[<a class="nv" href="#dom-filereadersync-filereadersync">Constructor</a>, <a class="nv idl-code" data-link-type="extended-attribute" href="https://heycam.github.io/webidl/#Exposed">Exposed</a>=<span class="n">DedicatedWorker</span>,<a class="nv idl-code" data-link-type="extended-attribute">SharedWorker</a>]
<span class="kt">interface</span> <a class="nv" href="#dfn-FileReaderSync">FileReaderSync</a> {
// Synchronously return strings

Expand Down

0 comments on commit 6a24b10

Please sign in to comment.