Re: [heycam/webidl] A non-optional dictionary argument makes sense at times. (#130)

> silently changed the IDL to make the warning go away

That should not have happened; it's totally my fault as the reviewer of that patch that it did.

The good news is that this happened 4 years ago, as you note (when we initially converted MutationObserver to use WebIDL at all); I believe our IDL reviews have gotten a _lot_ better since then.

Note that you've found one case where something slipped through the cracks, but if I recall correctly we've had multiple cases where we caught specs messing this up and got them fixed...

> Loosening the IDL to allow things that always throw a TypeError doesn't seem very useful.

Just so we're clear: this is a _really_ weird dictionary.  It has all sorts of interdependency requirements on its members that can't be expressed declaratively in the IDL and hence have to be expressed in prose.

All IDL can enforce for a dictionary like this, and tries to, is that behavior is identical for passing `undefined` and passing `{}` (as long as there are no getters on `Object.prototype`, of course).

-- 
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/130#issuecomment-243025068

Received on Monday, 29 August 2016 03:32:48 UTC