mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Implement report_an_error on GlobalRef.
This commit is contained in:
parent
5f702d6e7f
commit
b3050855e7
2 changed files with 11 additions and 3 deletions
|
@ -245,9 +245,7 @@ pub unsafe fn report_pending_exception(cx: *mut JSContext, dispatch_event: bool)
|
|||
|
||||
if dispatch_event {
|
||||
let global = global_root_from_context(cx);
|
||||
if let GlobalRef::Window(window) = global.r() {
|
||||
window.report_an_error(error_info, value.handle());
|
||||
}
|
||||
global.r().report_an_error(error_info, value.handle());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue