Revision 141082 of Number

  • Revision slug: Talk:JavaScript/Reference/Global_Objects/Number
  • Revision title: Number
  • Revision id: 141082
  • Created:
  • Creator: Dleonard
  • Is current revision? No
  • Comment

Revision Content

JS1.2 [[DefaultValue]]

Missing here, and in Core JavaScript 1.5 Reference:Global Objects:Array is mention of this JavaScript 1.2 behaviour:

 Number([1,2,3]) === 3

The test suite mentions the reason being at http://scopus.mcom.com/bugsplat/show_bug.cgi?id=123435

Revision Source

<h3 name="JS1.2_.5B.5BDefaultValue.5D.5D"> JS1.2 <span class="plain">[[DefaultValue]]</span> </h3>
<p>Missing here, and in <a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Array">Core JavaScript 1.5 Reference:Global Objects:Array</a> is mention of this JavaScript 1.2 behaviour:
</p>
<pre class="eval"> Number([1,2,3]) === 3
</pre>
<p>The test suite mentions the reason being at http://scopus.mcom.com/bugsplat/show_bug.cgi?id=123435
</p>
Revert to this revision