Skip to content

Commit

Permalink
move back some notes
Browse files Browse the repository at this point in the history
  • Loading branch information
saschanaz committed Dec 6, 2020
1 parent 62d5fb9 commit 214c8b7
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -93046,6 +93046,25 @@ enum <dfn>DOMParserSupportedType</dfn> {
<p>Run <span>timer queuing steps</span>, providing <var>method context</var> and
<var>task</var>.</p>

<p class="note">Argument conversion as defined by Web IDL (for example, invoking <code
data-x="">toString()</code> methods on objects passed as the first argument) happens in the
algorithms defined in Web IDL, before this algorithm is invoked.</p>

<div class="example">

<p>So for example, the following rather silly code will result in the log containing "<code
data-x="">ONE&nbsp;TWO&nbsp;</code>":</p>

<pre><code class="js">var log = '';
function logger(s) { log += s + ' '; }

setTimeout({ toString: function () {
setTimeout("logger('ONE')", 100);
return "logger('TWO')";
} }, 100);</code></pre>

</div>

<p class="note">Once the task has been processed, if the <var>repeat</var> flag is
false, it is safe to remove the entry for <var>handle</var> from the <span>list of
active timers</span> (there is no way for the entry's existence to be detected past this point,
Expand Down Expand Up @@ -93169,25 +93188,6 @@ dictionary <dfn>TimerOptions</dfn> {
<p>Wait until any invocations of this algorithm that had the same <var>method
context</var>, that started before this one, and whose <var>timeout</var> is equal to
or less than this one's, have completed.</p>

<p class="note">Argument conversion as defined by Web IDL (for example, invoking <code
data-x="">toString()</code> methods on objects passed as the first argument) happens in the
algorithms defined in Web IDL, before this algorithm is invoked.</p>

<div class="example">

<p>So for example, the following rather silly code will result in the log containing "<code
data-x="">ONE&nbsp;TWO&nbsp;</code>":</p>

<pre><code class="js">var log = '';
function logger(s) { log += s + ' '; }

setTimeout({ toString: function () {
setTimeout("logger('ONE')", 100);
return "logger('TWO')";
} }, 100);</code></pre>

</div>
</li>

<li>
Expand Down

0 comments on commit 214c8b7

Please sign in to comment.