Re: [heycam/webidl] Proposal: allow subclasses of constructible built-ins to be constructed (#125)

Sorry I keep coming back to this.. I think the key property is this: whatever adds the `CustomEvent` brand to the object must also ensure that it has the relevant internal slots for a `CustomEvent`.  This cannot be done by the `Event` constructor in general, I don't think, but it could be done, conceptually, by delegating to the `Event` constructor and then adding the internal slots and branding to the returned object. This is OK, at least, as long as you KNOW the super constructor does not allow the object to escape in any way....

---
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/125#issuecomment-220730169

Received on Friday, 20 May 2016 22:09:21 UTC