W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2015

Re: Custom element design with ES6 classes and Element constructors

From: Boris Zbarsky <bzbarsky@mit.edu>
Date: Tue, 13 Jan 2015 12:21:35 -0500
Message-ID: <54B5541F.1020705@mit.edu>
To: public-webapps@w3.org
On 1/13/15 12:06 PM, Gabor Krizsanits wrote:
>> I think this part of the spec was largely written before ES6 class stuff
>> stabilized, fwiw.  Which is not hard, since it's still not stabilized.  ;)
> Isn't there a chance to consider our use-case in ES6 spec. then?

I suspect not in time for ES6.  The "not stabilized" bit here is 
supposed to be rectified on a timeframe of hours-to-days.

> (+ internally I'm sure most engines does transformations in some cases
> already, like for array optimisations...)

The feedback from the V8/Blink folks was that they are in fact unable to 
do such a transformation for DOM objects.  That's one of the things that 
led to the re-coupling of allocation and initialization in ES6.

A more limited class transformation that doesn't involve changing the 
set of internal slots might be easier to do.  But if you have to change 
internal slots, things get complicated.

Received on Tuesday, 13 January 2015 17:22:04 UTC

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