- From: None via GitHub <sysbot+gh@w3.org>
- Date: Thu, 17 Sep 2015 17:24:44 +0000
- To: public-media-capture-logs@w3.org
jan-ivar has just submitted a new pull request for https://github.com/w3c/mediacapture-main: == make applyConstraints arg optional to fix webidl error == ``` 0:17.87 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/MediaStreamTrack.webidl line 75:67 0:17.87 Promise<void> applyConstraints (MediaTrackConstraints constraints); 0:17.87 ^ ``` >From https://heycam.github.io/webidl/#idl-operations "If the type of an argument is a dictionary type or a union type that has a dictionary type as one of its flattened member types, and that dictionary type and its ancestors have no required members, and the argument is either the final argument or is followed only by optional arguments, then the argument MUST be specified as optional. Such arguments are always considered to have a default value of an empty dictionary, unless otherwise specified." See https://github.com/w3c/mediacapture-main/pull/245
Received on Thursday, 17 September 2015 17:24:46 UTC