W3C home > Mailing lists > Public > public-webrtc@w3.org > September 2016

[webrtc-pc] The RTCDataChannelEventInit channel member needs to be required

From: Philip Jägenstedt via GitHub <sysbot+gh@w3.org>
Date: Thu, 22 Sep 2016 14:09:06 +0000
To: public-webrtc@w3.org
Message-ID: <issues.opened-178620403-1474553343-sysbot+gh@w3.org>
foolip has just created a new issue for 
https://github.com/w3c/webrtc-pc:

== The RTCDataChannelEventInit channel member needs to be required ==
https://w3c.github.io/webrtc-pc/#rtcdatachannelevent

If it isn't required, then `new RTCDataChannelEvent('type', {})` won't
 throw, and the resulting instance will have null for the `channel` 
attribute even though it's not nullable in the IDL. So:

```WebIDL
dictionary RTCDataChannelEventInit : EventInit {
    required RTCDataChannel channel;
};
```

Please view or discuss this issue at 
https://github.com/w3c/webrtc-pc/issues/817 using your GitHub account
Received on Thursday, 22 September 2016 14:09:24 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:18:19 UTC