mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Multiple CanGc fixes in components/script/dom (#33924)
Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com>
This commit is contained in:
parent
ee9e1fbbd6
commit
65c866285f
26 changed files with 77 additions and 37 deletions
|
@ -51,6 +51,7 @@ impl PromiseRejectionEvent {
|
|||
cancelable: EventCancelable,
|
||||
promise: Rc<Promise>,
|
||||
reason: HandleValue,
|
||||
can_gc: CanGc,
|
||||
) -> DomRoot<Self> {
|
||||
Self::new_with_proto(
|
||||
global,
|
||||
|
@ -60,7 +61,7 @@ impl PromiseRejectionEvent {
|
|||
cancelable,
|
||||
promise.promise_obj(),
|
||||
reason,
|
||||
CanGc::note(),
|
||||
can_gc,
|
||||
)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue