mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
make report_pending_exception safe and adjust callers (#35351)
Signed-off-by: Nolen Scaife <nolen@scaife.org>
This commit is contained in:
parent
827012fc08
commit
df73d02932
8 changed files with 42 additions and 44 deletions
|
@ -582,11 +582,9 @@ impl EventTarget {
|
|||
});
|
||||
if handler.get().is_null() {
|
||||
// Step 3.7
|
||||
unsafe {
|
||||
let ar = enter_realm(self);
|
||||
// FIXME(#13152): dispatch error event.
|
||||
report_pending_exception(*cx, false, InRealm::Entered(&ar), can_gc);
|
||||
}
|
||||
let ar = enter_realm(self);
|
||||
// FIXME(#13152): dispatch error event.
|
||||
report_pending_exception(cx, false, InRealm::Entered(&ar), can_gc);
|
||||
return None;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue