- From: Daniel Ehrenberg <notifications@github.com>
- Date: Mon, 10 Dec 2018 02:19:07 -0800
- To: heycam/webidl <webidl@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Monday, 10 December 2018 10:19:28 UTC
littledan commented on this pull request. > @@ -12337,18 +12336,73 @@ The value of the [=function object=]’s <code class="idl">name</code> property <h3 id="es-platform-objects">Platform objects implementing interfaces</h3> +<div algorithm> + An ECMAScript value |value| <dfn id="es-is-platform-object">is a platform object</dfn> + if [$Type$](|value|) is Object and if |value| has a \[[PrimaryInterface]] internal slot. +</div> + +<div algorithm> + An ECMAScript value |value| <dfn export>implements</dfn> an [=interface=] |interface| + if |value| [=is a platform object=] and one of the following is true: + <ul> + <li>|value|.\[[PrimaryInterface]] is |interface|.</li> + <li>The set of [=inherited interfaces=] of |value|.\[[PrimaryInterface]] contains |interface|.</li> Why's that? I thought it'd be better if the data structures were "normalized"--this makes it more clear to implementers that they don't need to denormalize either. -- 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/pull/595#discussion_r240153009
Received on Monday, 10 December 2018 10:19:28 UTC