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

Re: Elements (extends Array)

From: Cameron McCormack <cam@mcc.id.au>
Date: Thu, 08 Aug 2013 11:11:43 +1000
Message-ID: <5202F04F.5010005@mcc.id.au>
To: Anne van Kesteren <annevk@annevk.nl>
CC: "public-script-coord@w3.org" <public-script-coord@w3.org>
Anne van Kesteren wrote:
> For DOM we want to introduce this:
> https://gist.github.com/domenic/5864658 I.e. an object that's a
> subclass from Array and can be used in IDL. What do you think the best
> way forward would be here? Since there's some kind of bridge between
> IDL and JavaScript it seems we might run into some theoretical
> problems.

What are the remaining issues with subclassing Array in ECMAScript, or 
have they all been solved?  "length" still seems to be handled in a 
special [[DefineOwnProperty]] for exotic array objects, so just 
inheriting from Array.prototype won't work.  It also wouldn't test true 
to Array.isArray.  (Is that a problem?)
Received on Thursday, 8 August 2013 01:12:27 UTC

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