W3C home > Mailing lists > Public > public-script-coord@w3.org > July to September 2013

[Bug 22806] Why special case Date and RegExp in #es-sequence

From: <bugzilla@jessica.w3.org>
Date: Thu, 25 Jul 2013 18:12:59 +0000
To: public-script-coord@w3.org
Message-ID: <bug-22806-3890-rBGIELTtD8@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=22806

Domenic Denicola <domenic@domenicdenicola.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |domenic@domenicdenicola.com

--- Comment #1 from Domenic Denicola <domenic@domenicdenicola.com> ---
+1. This should work:

var arrayLike = new Date();
arrayLike.length = 2;
arrayLike[0] = "foo";
arrayLike[1] = "bar";

It's accepted by all ES built-ins.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Received on Thursday, 25 July 2013 18:13:01 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:37:50 UTC