Skip to content

Commit

Permalink
Fix broken links to #dfn-iterator.
Browse files Browse the repository at this point in the history
  • Loading branch information
heycam committed Oct 4, 2014
1 parent 297fc17 commit 0251e92
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 38 deletions.
33 changes: 14 additions & 19 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9449,7 +9449,9 @@ <h4 id="PrimaryGlobal">4.3.7. [Global] and [PrimaryGlobal]</h4>
There also <span class="rfc2119">MUST NOT</span> be more than
<a class="dfnref" href="#dfn-stringifier">stringifier</a>,
more than one <a class="dfnref" href="#dfn-serializer">serializer</a>,
or more than one <a class="dfnref" href="#dfn-iterator">iterator</a>
or more than one <a class="dfnref" href="#dfn-iterable-declaration">iterable declaration</a>,
<a class="dfnref" href="#dfn-maplike-declaration">maplike declaration</a> or
<a class="dfnref" href="#dfn-setlike-declaration">setlike declaration</a>
across those interfaces.
</p>
<div class="note"><div class="noteHeader">Note</div>
Expand Down Expand Up @@ -12321,10 +12323,9 @@ <h5>4.5.9.1. @@iterator</h5>
<li>Let <var>object</var> be the result of calling <a class="external" href="http://people.mozilla.org/~jorendorff/es6-draft.html#sec-toobject">ToObject</a> on the <span class="esvalue">this</span> value.</li>
<li>If <var>object</var> is a <a class="dfnref" href="#dfn-platform-object">platform object</a>,
then <a class="dfnref" href="#dfn-perform-a-security-check">perform a security check</a> on <var>object</var>
with the ECMAScript global environment associated with this <span class="estype">Function</span> that
implements the <a class="dfnref" href="#dfn-iterator">iterator</a>.</li>
with the ECMAScript global environment associated with this <span class="estype">Function</span>.</li>
<li>Let <var>interface</var> be the <a class="dfnref" href="#dfn-interface">interface</a>
on which the <a class="dfnref" href="#dfn-iterator">iterator</a> is declared.</li>
the <a class="dfnref" href="#dfn-iterable-declaration">iterable declaration</a> is on.</li>
<li>If <var>object</var> is not a <a class="dfnref" href="#dfn-platform-object">platform object</a>
that implements <var>interface</var>,
then <a href="#ecmascript-throw" class="dfnref external">throw a <span class="estype">TypeError</span></a>.</li>
Expand All @@ -12333,7 +12334,7 @@ <h5>4.5.9.1. @@iterator</h5>
<li>Return <var>iterator</var>.</li>
</ol>
<p>
If the interface does not have an <a class="dfnref" href="#dfn-iterator">iterator</a>
If the interface does not have an <a class="dfnref" href="#dfn-iterable-declaration">iterable declaration</a>
but does define an <a class="dfnref" href="#dfn-indexed-property-getter">indexed property getter</a>,
then the <span class="estype">Function</span> object that is the value of the <a class="external" href="https://people.mozilla.org/~jorendorff/es6-draft.html#sec-well-known-symbols">@@iterator</a> property,
when invoked, <span class="rfc2119">MUST</span> behave as follows:
Expand All @@ -12342,8 +12343,7 @@ <h5>4.5.9.1. @@iterator</h5>
<li>Let <var>object</var> be the result of calling <a class="external" href="http://people.mozilla.org/~jorendorff/es6-draft.html#sec-toobject">ToObject</a> on the <span class="esvalue">this</span> value.</li>
<li>If <var>object</var> is a <a class="dfnref" href="#dfn-platform-object">platform object</a>,
then <a class="dfnref" href="#dfn-perform-a-security-check">perform a security check</a> on <var>object</var>
with the ECMAScript global environment associated with this <span class="estype">Function</span> that
implements the <a class="dfnref" href="#dfn-iterator">iterator</a>.</li>
with the ECMAScript global environment associated with this <span class="estype">Function</span>.</li>
<li>If <var>object</var> is not a <a class="dfnref" href="#dfn-platform-object">platform object</a>
that implements the <a class="dfnref" href="#dfn-interface">interface</a>
on which the indexed property getter is defined,
Expand All @@ -12360,8 +12360,7 @@ <h5>4.5.9.1. @@iterator</h5>
<li>Let <var>object</var> be the result of calling <a class="external" href="http://people.mozilla.org/~jorendorff/es6-draft.html#sec-toobject">ToObject</a> on the <span class="esvalue">this</span> value.</li>
<li>If <var>object</var> is a <a class="dfnref" href="#dfn-platform-object">platform object</a>,
then <a class="dfnref" href="#dfn-perform-a-security-check">perform a security check</a> on <var>object</var>
with the ECMAScript global environment associated with this <span class="estype">Function</span> that
implements the <a class="dfnref" href="#dfn-iterator">iterator</a>.</li>
with the ECMAScript global environment associated with this <span class="estype">Function</span>.</li>
<li>If <var>object</var> is not a <a class="dfnref" href="#dfn-platform-object">platform object</a>
that implements the <a class="dfnref" href="#dfn-interface">interface</a>
on which the <a class="dfnref" href="#dfn-maplike-declaration">maplike declaration</a>
Expand Down Expand Up @@ -12425,8 +12424,7 @@ <h5>4.5.9.2. forEach</h5>
<li>Let <var>object</var> be the result of calling <a class="external" href="http://people.mozilla.org/~jorendorff/es6-draft.html#sec-toobject">ToObject</a> on the <span class="esvalue">this</span> value.</li>
<li>If <var>object</var> is a <a class="dfnref" href="#dfn-platform-object">platform object</a>,
then <a class="dfnref" href="#dfn-perform-a-security-check">perform a security check</a> on <var>object</var>
with the ECMAScript global environment associated with this <span class="estype">Function</span> that
implements the <a class="dfnref" href="#dfn-iterator">iterator</a>.</li>
with the ECMAScript global environment associated with this <span class="estype">Function</span>.</li>
<li>Let <var>interface</var> be the <a class="dfnref" href="#dfn-interface">interface</a>
on which the <a class="dfnref" href="#dfn-iterable-declaration">iterable declaration</a> is declared on.</li>
<li>If <var>object</var> is not a <a class="dfnref" href="#dfn-platform-object">platform object</a>
Expand Down Expand Up @@ -12461,8 +12459,7 @@ <h5>4.5.9.2. forEach</h5>
<li>Let <var>object</var> be the result of calling <a class="external" href="http://people.mozilla.org/~jorendorff/es6-draft.html#sec-toobject">ToObject</a> on the <span class="esvalue">this</span> value.</li>
<li>If <var>object</var> is a <a class="dfnref" href="#dfn-platform-object">platform object</a>,
then <a class="dfnref" href="#dfn-perform-a-security-check">perform a security check</a> on <var>object</var>
with the ECMAScript global environment associated with this <span class="estype">Function</span> that
implements the <a class="dfnref" href="#dfn-iterator">iterator</a>.</li>
with the ECMAScript global environment associated with this <span class="estype">Function</span>.</li>
<li>Let <var>interface</var> be the <a class="dfnref" href="#dfn-interface">interface</a>
on which the <a class="dfnref" href="#dfn-iterable-declaration">iterable declaration</a> is declared on.</li>
<li>If <var>object</var> is not a <a class="dfnref" href="#dfn-platform-object">platform object</a>
Expand Down Expand Up @@ -12534,8 +12531,7 @@ <h5>4.5.10.1. entries</h5>
<li>Let <var>object</var> be the result of calling <a class="external" href="http://people.mozilla.org/~jorendorff/es6-draft.html#sec-toobject">ToObject</a> on the <span class="esvalue">this</span> value.</li>
<li>If <var>object</var> is a <a class="dfnref" href="#dfn-platform-object">platform object</a>,
then <a class="dfnref" href="#dfn-perform-a-security-check">perform a security check</a> on <var>object</var>
with the ECMAScript global environment associated with this <span class="estype">Function</span> that
implements the <a class="dfnref" href="#dfn-iterator">iterator</a>.</li>
with the ECMAScript global environment associated with this <span class="estype">Function</span>.</li>
<li>Let <var>interface</var> be the <a class="dfnref" href="#dfn-interface">interface</a>
on which the <a class="dfnref" href="#dfn-iterable-declaration">iterable declaration</a> is declared on.</li>
<li>If <var>object</var> is not a <a class="dfnref" href="#dfn-platform-object">platform object</a>
Expand Down Expand Up @@ -12579,8 +12575,7 @@ <h5>4.5.10.2. keys</h5>
<li>Let <var>object</var> be the result of calling <a class="external" href="http://people.mozilla.org/~jorendorff/es6-draft.html#sec-toobject">ToObject</a> on the <span class="esvalue">this</span> value.</li>
<li>If <var>object</var> is a <a class="dfnref" href="#dfn-platform-object">platform object</a>,
then <a class="dfnref" href="#dfn-perform-a-security-check">perform a security check</a> on <var>object</var>
with the ECMAScript global environment associated with this <span class="estype">Function</span> that
implements the <a class="dfnref" href="#dfn-iterator">iterator</a>.</li>
with the ECMAScript global environment associated with this <span class="estype">Function</span>.</li>
<li>Let <var>interface</var> be the <a class="dfnref" href="#dfn-interface">interface</a>
on which the <a class="dfnref" href="#dfn-iterable-declaration">iterable declaration</a> is declared on.</li>
<li>If <var>object</var> is not a <a class="dfnref" href="#dfn-platform-object">platform object</a>
Expand Down Expand Up @@ -12660,8 +12655,8 @@ <h5>4.5.10.5. Iterator prototype object</h5>
<p>
The <dfn id="dfn-iterator-prototype-object">iterator prototype object</dfn>
for a given <a class="dfnref" href="#dfn-interface">interface</a>
is an object that exists for every interface that defines an
<a class="dfnref" href="#dfn-iterator">iterator</a>. It serves as the
is an object that exists for every interface that has an
<a class="dfnref" href="#dfn-iterable-declaration">iterable declaration</a>. It serves as the
prototype for <a class="dfnref" href="#dfn-default-iterator-object">default iterator objects</a>
for the interface.
</p>
Expand Down
Loading

0 comments on commit 0251e92

Please sign in to comment.