Update Rust to 1.13.0-nightly (6ffdda1ba 2016-09-14)

This commit is contained in:
Anthony Ramine 2016-09-15 17:00:56 +02:00
parent b3db4b4c0d
commit ec12355cb3
4 changed files with 5 additions and 6 deletions

View file

@ -140,6 +140,7 @@ impl Worker {
worker.upcast().fire_simple_event("error");
}
#[allow(unsafe_code)]
fn dispatch_error(&self, error_info: ErrorInfo) {
let global = self.global();
let event = ErrorEvent::new(global.r(),
@ -150,14 +151,14 @@ impl Worker {
error_info.filename.as_str().into(),
error_info.lineno,
error_info.column,
NullHandleValue);
unsafe { NullHandleValue });
let handled = !event.upcast::<Event>().fire(self.upcast::<EventTarget>());
if handled {
return;
}
global.r().report_an_error(error_info, NullHandleValue);
global.r().report_an_error(error_info, unsafe { NullHandleValue });
}
}