- From: Harald Alvestrand <harald@alvestrand.no>
- Date: Tue, 15 Sep 2015 11:56:18 -0700
- To: Jan-Ivar Bruaroey <jib@mozilla.com>, Martin Thomson <martin.thomson@gmail.com>
- Cc: "public-webrtc@w3.org" <public-webrtc@w3.org>
On 09/15/2015 11:36 AM, Jan-Ivar Bruaroey wrote: > On 9/15/15 12:54 AM, Martin Thomson wrote: >> On 14 September 2015 at 20:05, Jan-Ivar Bruaroey <jib@mozilla.com> >> wrote: >>> - Promise<void> addIceCandidate (RTCIceCandidate candidate); >>> + Promise<void> addIceCandidate (optional RTCIceCandidateInit >>> candidate); >> Why optional, out of interest? > > 0:18.18 WebIDL.WebIDLError: error: Dictionary argument or union > argument containing a dictionary not followed by a required argument > must be optional, > /Users/Jan/moz/mozilla-central/dom/webidl/RTCPeerConnection.webidl > line 105:53 > 0:18.18 Promise<void> addIceCandidate (RTCIceCandidateInit candidate); > 0:18.18 ^ So either this is a WebIDL rule or a compiler bug. Is this because the dictionary definers have defined that {} (empty dictionary) should be treated the same as a missing argument, and want to make the possibly-missing argument explicit? So many rules....
Received on Tuesday, 15 September 2015 18:56:53 UTC