diff options
Diffstat (limited to 'components/script/dom/rtcdatachannelevent.rs')
-rw-r--r-- | components/script/dom/rtcdatachannelevent.rs | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/components/script/dom/rtcdatachannelevent.rs b/components/script/dom/rtcdatachannelevent.rs index 9757ba5c8fa..55898897afc 100644 --- a/components/script/dom/rtcdatachannelevent.rs +++ b/components/script/dom/rtcdatachannelevent.rs @@ -40,16 +40,9 @@ impl RTCDataChannelEvent { bubbles: bool, cancelable: bool, channel: &RTCDataChannel, + can_gc: CanGc, ) -> DomRoot<RTCDataChannelEvent> { - Self::new_with_proto( - global, - None, - type_, - bubbles, - cancelable, - channel, - CanGc::note(), - ) + Self::new_with_proto(global, None, type_, bubbles, cancelable, channel, can_gc) } fn new_with_proto( |