mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Update Rust to 1.13.0-nightly (6ffdda1ba 2016-09-14)
This commit is contained in:
parent
b3db4b4c0d
commit
ec12355cb3
4 changed files with 5 additions and 6 deletions
|
@ -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 });
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue