Re: [heycam/webidl] Sort out when dictionaries and records should have default values (#76)

Automatically eliding empty dictionaries might make it harder to provide invariants to JS, like:
```js
if (pc.getParameters().rtcp.cname) // TypeError: pc.getParameters(...).rtcp is undefined
```
That might be correct in this particular case, but as a general rule, I could see it causing edges if a returned dictionary is mostly not empty.

-- 
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/76#issuecomment-373511586

Received on Thursday, 15 March 2018 20:26:45 UTC