partial interface RTCDataChannel : EventTarget { readonly attribute RTCDataChannelParameters parameters; } [BA] This is illegal in WebIDL. Should be replaced by: RTCDataChannelParameters getParameters(); In Example 23: // Construct RTCDataChannelParameters object var parameters = new RTCDataChannelParameters(); [BA] This is not correct, since RTCDataChannelParameters is a dictionary, not an object. Should be: var parameters = { label: "", ordered: true, maxPacketLifetime: <a value>, maxRetransmits: <a value>, protocol: "", negotiated: false, id: <a value> };
partial interface RTCDataChannel : EventTarget {
readonly attribute RTCDataChannelParameters parameters;
}
[BA] This is illegal in WebIDL. Should be replaced by:
RTCDataChannelParameters getParameters();
In Example 23:
// Construct RTCDataChannelParameters object
var parameters = new RTCDataChannelParameters();
[BA] This is not correct, since RTCDataChannelParameters is a dictionary, not an object. Should be:
var parameters = {
label: "",
ordered: true,
maxPacketLifetime: ,
maxRetransmits: ,
protocol: "",
negotiated: false,
id:
};