mirror of
https://github.com/servo/servo.git
synced 2025-08-09 15:35:34 +01:00
refactor: add CanGc as argument to Promise::resolve (#35616)
Signed-off-by: Yerkebulan Tulibergenov <yerkebulan@gmail.com>
This commit is contained in:
parent
adb831eefe
commit
0383ba9a5b
57 changed files with 330 additions and 294 deletions
|
@ -31,6 +31,7 @@ use std::rc::Rc;
|
|||
use std::sync::{Arc, Weak};
|
||||
|
||||
use js::jsapi::JSTracer;
|
||||
use script_bindings::script_runtime::CanGc;
|
||||
|
||||
use crate::dom::bindings::conversions::ToJSValConvertible;
|
||||
use crate::dom::bindings::error::Error;
|
||||
|
@ -151,7 +152,7 @@ impl TrustedPromise {
|
|||
let this = self;
|
||||
task!(resolve_promise: move || {
|
||||
debug!("Resolving promise.");
|
||||
this.root().resolve_native(&value);
|
||||
this.root().resolve_native(&value, CanGc::note());
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue