mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
CanGc fixes in errorevent.rs
(#33960)
* CanGc fixes in errorevent.rs Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com> * Allow too_many_arguments to avoid lint error Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com> --------- Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com>
This commit is contained in:
parent
575e885529
commit
7015e0fb5f
21 changed files with 79 additions and 51 deletions
|
@ -486,7 +486,7 @@ impl EventTarget {
|
|||
&self,
|
||||
handler: InternalRawUncompiledHandler,
|
||||
ty: &Atom,
|
||||
_can_gc: CanGc,
|
||||
can_gc: CanGc,
|
||||
) -> Option<CommonEventHandler> {
|
||||
// Step 3.1
|
||||
let element = self.downcast::<Element>();
|
||||
|
@ -568,7 +568,7 @@ impl EventTarget {
|
|||
unsafe {
|
||||
let ar = enter_realm(self);
|
||||
// FIXME(#13152): dispatch error event.
|
||||
report_pending_exception(*cx, false, InRealm::Entered(&ar));
|
||||
report_pending_exception(*cx, false, InRealm::Entered(&ar), can_gc);
|
||||
}
|
||||
return None;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue