[heycam/webidl] Can we use ObjectCreate in object creation? + other editorial tweaks (#655)

https://heycam.github.io/webidl/#internally-create-a-new-object-implementing-the-interface

I think we can use ObjectCreate() for steps 4-6. This would also allow us to move

> Unless otherwise specified, the [[Extensible]] internal slot of objects defined in this section has the value true

into the algorithm.

We'd need to add something like "in _realm_" still, but I think that's nice; it shows how we're more explicit than ES in this one respect, but everything else is aligned with normal practices.

Best done after #654.

---

While in that area, I think there are a few sentences in the intro to https://heycam.github.io/webidl/#ecmascript-binding which are becoming redundant these days now that object creation is imperative:

> Unless otherwise specified, exotic objects defined in this section and other specifications have the same internal slots as ordinary objects, and all of the internal methods for which alternative definitions are not given are the same as those of ordinary objects.

> Unless otherwise specified, the [[Prototype]] internal slot of objects defined in this section is %ObjectPrototype%.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/issues/655

Received on Monday, 25 February 2019 15:39:12 UTC