[heycam/webidl] Do specs need to handle the special value “missing” for dictionaries? (#349)

In https://github.com/w3c/webrtc-pc/pull/1137, @taylor-b wrote "Let init be the second (dictionary) argument if present, or a default RTCDataChannelInit otherwise."

This is atypical, but I can't figure out why specs *don't* need to do this. https://heycam.github.io/webidl/#dfn-overload-resolution-algorithm is what converts ES arguments to IDL values, and uses the special value "missing" for arguments that have no default value. For trailing optional dictionaries, this is in step 14, "While i < argcount".

If the condition "If optionality is “optional” and V is undefined, then" were tweaked to exclude dictionaries then it would work as *I* assume it should.

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

Received on Tuesday, 25 April 2017 05:55:52 UTC