23 lines
374 B
JavaScript
23 lines
374 B
JavaScript
'use strict';
|
|
|
|
function RTCDataChannelEvent(type, eventInitDict) {
|
|
Object.defineProperties(this, {
|
|
bubbles: {
|
|
value: false
|
|
},
|
|
cancelable: {
|
|
value: false
|
|
},
|
|
type: {
|
|
value: type,
|
|
enumerable: true
|
|
},
|
|
channel: {
|
|
value: eventInitDict.channel,
|
|
enumerable: true
|
|
}
|
|
});
|
|
}
|
|
|
|
module.exports = RTCDataChannelEvent;
|