Trigger RTCErrorEvent on data channel error

This commit is contained in:
Fernando Jiménez Moreno 2020-06-01 12:19:47 +02:00
parent 84598a5173
commit 5c6dcbf54e
3 changed files with 22 additions and 4 deletions

View file

@ -40,7 +40,7 @@ impl RTCError {
}
}
fn new(global: &GlobalScope, init: &RTCErrorInit, message: DOMString) -> DomRoot<RTCError> {
pub fn new(global: &GlobalScope, init: &RTCErrorInit, message: DOMString) -> DomRoot<RTCError> {
reflect_dom_object(
Box::new(RTCError::new_inherited(global, init, message)),
global,