mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Make report_pending_exception unsafe
This commit is contained in:
parent
bc52617d33
commit
27620320f3
3 changed files with 12 additions and 8 deletions
|
@ -425,7 +425,9 @@ impl EventTarget {
|
|||
};
|
||||
if !rv || handler.ptr.is_null() {
|
||||
// Step 1.8.2
|
||||
report_pending_exception(cx, self.reflector().get_jsobject().get());
|
||||
unsafe {
|
||||
report_pending_exception(cx, self.reflector().get_jsobject().get());
|
||||
}
|
||||
// Step 1.8.1 / 1.8.3
|
||||
return None;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue