Specify that Arrays can't make loops when used as a key.
authorJonas Sicking <jonas@sicking.cc>
Fri, 02 Mar 2012 17:24:28 +0100
changeset 324b4158388d1f8
parent 323 b1b3b989d3e6
child 325 8d2fd72de921
Specify that Arrays can't make loops when used as a key.
Overview.html
Speclet_020_IDB_API_Constructs.html
     1.1 --- a/Overview.html	Fri Mar 02 17:17:57 2012 +0100
     1.2 +++ b/Overview.html	Fri Mar 02 17:24:28 2012 +0100
     1.3 @@ -458,7 +458,8 @@
     1.4              <code>Array</code> JavaScript objects [[!ECMA-262]], <code>DOMString</code> [[!WEBIDL]],
     1.5              <code>Date</code> [[!ECMA-262]] or <code>float</code> [[!WEBIDL]].
     1.6              However <code>Array</code>s are only <a>valid key</a>s if every item in the array is defined and is
     1.7 -            a <a>valid key</a> (i.e. sparse arrays can not be <a>valid key</a>s).
     1.8 +            a <a>valid key</a> (i.e. sparse arrays can not be <a>valid key</a>s) and if the <code>Array</code> doesn't directly or
     1.9 +            indirectly contain itself.
    1.10              Any non-numeric properties are ignored, and thus does not affect whether the <code>Array</code> is a <a>valid key</a>.
    1.11              Additionally, if the value is of type <code>float</code>, it is only a <a>valid key</a> if it is not <code>NaN</code>,
    1.12              and if the value is of type <code>Date</code> it is only a <a>valid key</a> if its <code>[<span>[</span>PrimitiveValue]]</code>
     2.1 --- a/Speclet_020_IDB_API_Constructs.html	Fri Mar 02 17:17:57 2012 +0100
     2.2 +++ b/Speclet_020_IDB_API_Constructs.html	Fri Mar 02 17:24:28 2012 +0100
     2.3 @@ -250,7 +250,8 @@
     2.4              <code>Array</code> JavaScript objects [[!ECMA-262]], <code>DOMString</code> [[!WEBIDL]],
     2.5              <code>Date</code> [[!ECMA-262]] or <code>float</code> [[!WEBIDL]].
     2.6              However <code>Array</code>s are only <a>valid key</a>s if every item in the array is defined and is
     2.7 -            a <a>valid key</a> (i.e. sparse arrays can not be <a>valid key</a>s).
     2.8 +            a <a>valid key</a> (i.e. sparse arrays can not be <a>valid key</a>s) and if the <code>Array</code> doesn't directly or
     2.9 +            indirectly contain itself.
    2.10              Any non-numeric properties are ignored, and thus does not affect whether the <code>Array</code> is a <a>valid key</a>.
    2.11              Additionally, if the value is of type <code>float</code>, it is only a <a>valid key</a> if it is not <code>NaN</code>,
    2.12              and if the value is of type <code>Date</code> it is only a <a>valid key</a> if its <code>[<span>[</span>PrimitiveValue]]</code>