Skip to content

Commit

Permalink
fixup1
Browse files Browse the repository at this point in the history
  • Loading branch information
domenic committed Feb 12, 2016
1 parent 780cdd4 commit d66cbf4
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -93506,7 +93506,7 @@ function showLogout() {
<pre>var worker = new Worker('helper.js');</pre>

<p>If you want your worker script to be interpreted as a <span>module script</span> instead of
the default <span>classic script</span>, you can use a slightly different signature:</p>
the default <span>classic script</span>, you need to use a slightly different signature:</p>

<pre>var worker = new Worker('helper.js', { type: "module" });</pre>

Expand Down Expand Up @@ -94012,9 +94012,10 @@ interface <dfn>WorkerGlobalScope</dfn> : <span>EventTarget</span> {
<!-- SCRIPT EXEC -->

<li>
<p>Perform either the <span>run a classic script</span> or <span>run a module script</span>
algorithms on <var>script</var>, depending on whether it is a <span>classic script</span> or
<span>module script</span>.</p>
<p>If <var>script</var> is a <span>classic script</span>, then <span data-x="run a classic
script">run the classic script</span> <var>script</var>. Otherwise, it is a <span>module
script</span>; <span data-x="run a module script">run the module script</span>
<var>script</var>.</p>

<p class="note">In addition to the usual possibilities of returning a value or failing due to
an exception, this could be prematurely aborted by the "<span>kill a worker</span>" or
Expand Down Expand Up @@ -94317,7 +94318,7 @@ interface <dfn>Worker</dfn> : <span>EventTarget</span> {

dictionary <dfn>WorkerOptions</dfn> {
<span>WorkerType</span> type = "classic";
<span>RequestCredentials</span> credentials = "omit";
<span>RequestCredentials</span> credentials = "omit"; // credentials is only used if type is "module"
};

enum <dfn>WorkerType</dfn> { "classic", "module" };
Expand Down

0 comments on commit d66cbf4

Please sign in to comment.