Constructors without new

Anne van Kesteren annevk at annevk.nl
Wed Aug 7 04:14:18 PDT 2013


Per last meeting I understood that constructors without new should
probably not work to make subclassing easier (my understanding of that
is still somewhat limited, I'll get there). I filed
https://www.w3.org/Bugs/Public/show_bug.cgi?id=22808 on IDL to see if
this was possible for the platform side of things.

I now see that ArrayBuffer() is defined as doing the equivalent thing
to new ArrayBuffer() in the ES6 draft, despite e.g. Chrome currently
throwing for the former. (This is equivalent to today's story for e.g.
XMLHttpRequest.)

What exactly is the plan here?


-- 
http://annevankesteren.nl/


More information about the es-discuss mailing list