aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/rtcdatachannelevent.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/rtcdatachannelevent.rs')
-rw-r--r--components/script/dom/rtcdatachannelevent.rs11
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(