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

Re: Exposing constructors of readonly interfaces to web authors

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Thu, 10 Jul 2014 14:54:44 -0400
Message-ID: <53BEE174.7060907@mit.edu>
To: Domenic Denicola <domenic@domenicdenicola.com>
CC: Rik Cabanier <cabanier@gmail.com>, "public-script-coord@w3.org" <public-script-coord@w3.org>
On 7/10/14, 12:51 PM, Domenic Denicola wrote:
> it *is* important to avoid non-constructible classes where possible, even if their constructors are not assigned to global variables.

I'm just saying it should be assigned _somewhere_.  People shouldn't 
have to get a Foo instance via some side-channel just to be able to do 
|new Foo.constructor()| to create a new Foo instance.

-Boris
Received on Thursday, 10 July 2014 18:55:13 UTC

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