Re: [heycam/webidl] Does a non-nullable and non-required dictionary member of interface type make sense? (#176)

Right, HitRegionOptions is the only remaining thing on my list that isn't an init dict. Would the API really have been better if `context.addHitRegion({ id: "foo", control: null })` threw TypeError?

As part of https://crbug.com/647693 I had to look at all option, non-nullable dictionary members of interface type, and without exception they should either be required or made nullable, see spec issues linked in https://github.com/heycam/webidl/issues/176#issuecomment-248259867. So my selfish motivation here is that if webidl2.js and Blink's IDL parser would complain about cases like with, I won't have to spend time on these things again.

-- 
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/176#issuecomment-248276827

Received on Tuesday, 20 September 2016 11:38:59 UTC