Skip to content

Commit

Permalink
Merge pull request #58 from w3c/range-errors
Browse files Browse the repository at this point in the history
Replace RangeErrors with TypeErrors
  • Loading branch information
npm1 authored Apr 25, 2019
2 parents 4ded0fb + 1cd6630 commit d2bbcd3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ <h3>The <dfn><a>PerformanceMark</a> Constructor</dfn></h3>
<li>
If <var>markOptions</var>'s <a>startTime</a> member is <a data-cite="WEBIDL#dfn-present">present</a>, then:
<ol>
<li>If <var>markOptions</var>'s <a>startTime</a> is negative, throw a <a data-cite="WEBIDL#exceptiondef-rangeerror"><code>RangeError</code></a>.</li>
<li>If <var>markOptions</var>'s <a>startTime</a> is negative, throw a <a data-cite="WEBIDL#exceptiondef-typeerror"><code>TypeError</code></a>.</li>
<li>Otherwise, set <var>entry</var>'s <code>startTime</code> to the value of <var>markOptions</var>'s <a>startTime</a>.</li>
</ol>
</li>
Expand Down Expand Up @@ -362,7 +362,7 @@ <h2>Convert a <var>mark</var> to a <var>timestamp</var></h2>
<li>
Otherwise, if <var>mark</var> is a <code>DOMHighResTimeStamp</code>:
<ol>
<li>If <var>mark</var> is negative, throw a <a data-cite="WEBIDL#exceptiondef-rangeerror"><code>RangeError</code></a>.</li>
<li>If <var>mark</var> is negative, throw a <a data-cite="WEBIDL#exceptiondef-typeerror"><code>TypeError</code></a>.</li>
<li>Otherwise, let <var>end time</var> be <var>mark</var>.</li>
</ol>
</li>
Expand Down

0 comments on commit d2bbcd3

Please sign in to comment.