Re: Exposing constructors of readonly interfaces to web authors

On Fri, Jun 27, 2014 at 9:19 AM, Dirk Schulze <dschulze@adobe.com> wrote:
> The question is probably which argument outweighs the other?

The way Domenic explained this the last time around was that certain
constructors would accept an ID of sorts as argument that only the UA
would know about.

Given that explanation, I don't see the problem throwing for these
constructors, just like we throw for

> new Navigator
> new Window

etc.

We could of course allow dummy objects be constructed if you don't
pass the ID, but that would break consistency with existing objects
such as those I listed above.


What you might want to do instead is just have a single object and
just make the properties throw when the object is in readonly mode or
some such. And allow only the UA to set it in readonly mode for now.


-- 
http://annevankesteren.nl/

Received on Friday, 27 June 2014 10:00:28 UTC