Re: Determining what prototype should be used for an object

On Mon, Nov 17, 2014 at 4:16 PM, Boris Zbarsky <bzbarsky@mit.edu> wrote:
> On 11/17/14, 10:03 AM, Anne van Kesteren wrote:
>> Yes. It seems like Realm might be the only real variable for creation.
>> Do we know of cases where we want a different Realm?
>
> Different from what?

>From whatever the default would be. From my tests it seems all objects
can behave the same way. I was just wondering if there were some cases
that we did not touch upon that defy that.


>> I think finding an object's associated objects that need to be created
>> should be done through IDL syntax. I think describing the internal
>> slots would make a lot of sense for that
>
> It would be the only way to do it, I'd think.  There's no current syntactic
> construct that describes it....
>
> Though we could auto-assume internal slots for object-valued attributes, to
> reduce the amount of churn needed.

Yeah. [[slot]] seems obvious notation-wise. They can be similarly
declared to attributes I think. Probably with default values.

  boolean [[bubbles]] = false;
  boolean [[cancelable]] = false;

  DOMImplementation [[implementation]]; // enough to create one and
make it "associated"


-- 
https://annevankesteren.nl/

Received on Monday, 17 November 2014 15:26:36 UTC