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

domenic commented on this pull request.



> @@ -10877,35 +10877,54 @@ defined on that interface.
 These properties are described in more detail
 in sections [[#es-attributes]] and [[#es-operations]].

This paragraph was untouched, but the paragraphs about constants and the constructor property were deleted. Maybe best to delete them all, or alternately convert them into a brief non-normative summary (e.g. as a buletted list in a NOTE)?

> -        return the [=named properties object=]
-        for |A|, as defined in [[#named-properties-object]].
-    1.  Otherwise, if |A| is declared to inherit from another
-        interface, then return the
-        [=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%}}.
+    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=] of |interface|,
+        as defined in [[#named-properties-object]].
+    1.  Otherwise, if |interface| is declared to inherit from another interface,
+        then set |proto| to the [=interface prototype object=] of the inherited interface.

s/the inherited/that? Or s/inherited/inherited-from/?

-- 
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#pullrequestreview-84569472

Received on Tuesday, 19 December 2017 19:49:29 UTC