[heycam/webidl] ES-to-IDL conversion broken for annotated types (#443)

As raised by @TimothyGu in https://github.com/heycam/webidl/issues/441#issuecomment-330483591:

> the union conversion algorithm only really talks about annotated types in the [flattened member types](https://heycam.github.io/webidl/#dfn-flattened-union-member-types) algorithm, which just throws away any annotations on the member types of a union type. This means that, technically as of now, `([TreatNullAs=EmptyString] DOMString or SomeObjectType)` is equivalent to `(DOMString or SomeObjectType)` as far as ES-to-IDL conversion is concerned. This does not seem right.

-- 
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/issues/443

Received on Tuesday, 19 September 2017 11:16:35 UTC