Re: [heycam/webidl] Make interface prototype object creation imperative (#494)

tobie commented on this pull request.



> @@ -12410,6 +12453,24 @@ attribute is the concatenation of the class string of the namespace, ".",
 and the class string that the interface would otherwise have without this
 extended attribute.
 
+
+<div algorithm>
+
+    A [=platform object=] implementing an [=interface=] |interface|, in [=Realm=] |realm|,
+    and with optional [=list=] of [=internal slots=] |internalSlotsList|,
+    is <dfn lt="create a platform object">created</dfn> as follows:
+
+    1.  Let |proto| be the [=interface prototype object=] for |interface| in |realm|.
+    1.  Let |obj| be [=ObjectCreate=](|proto|, |internalSlotsList|).
+    1.  Set |obj|.\[[SetPrototypeOf]] to the definition specified in [[#platform-object-setprototypeof]].

(5) above is already taken care of by virtue of using `ObjectCreate`.

Not too sure what to do about your italicized section in (3).

-- 
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/494#discussion_r162486686

Received on Thursday, 18 January 2018 22:18:59 UTC