diff options
Diffstat (limited to 'components/script/dom/rtcerror.rs')
-rw-r--r-- | components/script/dom/rtcerror.rs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/components/script/dom/rtcerror.rs b/components/script/dom/rtcerror.rs index 29dd49432b9..372a96f6989 100644 --- a/components/script/dom/rtcerror.rs +++ b/components/script/dom/rtcerror.rs @@ -43,8 +43,13 @@ impl RTCError { } } - pub fn new(global: &GlobalScope, init: &RTCErrorInit, message: DOMString) -> DomRoot<RTCError> { - Self::new_with_proto(global, None, init, message, CanGc::note()) + pub fn new( + global: &GlobalScope, + init: &RTCErrorInit, + message: DOMString, + can_gc: CanGc, + ) -> DomRoot<RTCError> { + Self::new_with_proto(global, None, init, message, can_gc) } fn new_with_proto( |