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

tobie commented on this pull request.



> -        [=interface prototype object=]
-        for the inherited interface.
-    1.  Otherwise, if |A| is declared with the [{{LegacyArrayClass}}]
-        extended attribute, then return {{%ArrayPrototype%}}.
-    1.  Otherwise, return {{%ObjectPrototype%}}.
+    The [=interface prototype object=] for a given [=interface=] |interface| and [=Realm=] |realm|
+    is <dfn lt="create an interface prototype object">created</dfn> as follows:
+
+    1.  Let |proto| be null.
+    1.  If |interface| is declared with the [{{Global}}] [=extended attribute=],
+        and |interface| [=support named properties|supports named properties=],
+        then set |proto| to the [=named properties object=] in |realm| of |interface|.
+    1.  Otherwise, if |interface| is declared to inherit from another interface,
+        then set |proto| to the [=interface prototype object=] in |realm|
+        of that [=inherited interface=].
+    1.  Otherwise, if |interface| is the {{DOMException}} [=interface=],

Fixed in https://github.com/heycam/webidl/pull/494/commits/3c27f1d18ea6e8d248af369fc5ec9842ff084d35.

-- 
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_r170677907

Received on Monday, 26 February 2018 17:51:12 UTC