W3C home > Mailing lists > Public > public-script-coord@w3.org > October to December 2011

Re: What type should .findAll return

From: Allen Wirfs-Brock <allen@wirfs-brock.com>
Date: Fri, 11 Nov 2011 13:00:42 -0800
Cc: Jonas Sicking <jonas@sicking.cc>, Webapps WG <public-webapps@w3.org>, public-script-coord@w3.org
Message-Id: <57E0B88F-637F-47F6-B428-BDB46056B373@wirfs-brock.com>
To: Tab Atkins Jr. <jackalmage@gmail.com>

On Nov 11, 2011, at 7:46 AM, Tab Atkins Jr. wrote:

> On Fri, Nov 11, 2011 at 1:05 AM, Jonas Sicking <jonas@sicking.cc> wrote:
>> And to ensure that the object acts as much as possible as an array it
>> should also have it's [[Class]] set to that of an array. This has
>> subtle effects on a number of functions. For example it affects what
>> Object.toString() and Array.isArray returns, it affects how
>> Array.concat behaves, and it affects the JSON serializer.
> Could you point me to an explanation of what [[Class]] represents in
> ecmascript?  It's a little hard to search for.

this turns out to not be such a simple question see https://docs.google.com/document/d/1sSUtri6joyOOh23nVDfMbs1wDS7iDMDUFVVeHeRdSIw/edit?authkey=CI-FopgC 

[[Class]] has been (mis-??)used for many things.  This is why we want to cleanup up for the future.


Received on Friday, 11 November 2011 21:01:17 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:04 UTC