Re: [heycam/webidl] Disallow nullable Promise types. (#248)

domenic commented on this pull request.



> @@ -5741,7 +5741,7 @@ which just allows the additional value <emu-val>null</emu-val>
 to be a member of its set of values.  [=Nullable types=]
 are represented in IDL by placing a <span class="char">U+003F QUESTION MARK ("?")</span>
 character after an existing type.  The inner type must not
-be {{any}},
+be {{any}}, a [=Promise type=],
 another nullable type, or a [=union type=]

It seems OK to me. Maybe a bulleted list would make it clearer. "The inner type must not be any of the following:

- any
- a Promise type
- another nullable type
- a union type that itself has includes a nullable type [sic; maybe fix this while here] or has a dictionary or record type as one of its flattened member types"


-- 
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/248

Received on Thursday, 8 December 2016 18:59:22 UTC