mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
refactor: add CanGc as argument to Promise::reject_error (#35646)
Signed-off-by: Yerkebulan Tulibergenov <yerkebulan@gmail.com>
This commit is contained in:
parent
c844ed232a
commit
38b71087bd
43 changed files with 323 additions and 249 deletions
|
@ -988,8 +988,8 @@ impl TestBindingMethods<crate::DomTypeHolder> for TestBinding {
|
|||
p.reject(cx, v, can_gc);
|
||||
}
|
||||
|
||||
fn PromiseRejectWithTypeError(&self, p: &Promise, s: USVString) {
|
||||
p.reject_error(Error::Type(s.0));
|
||||
fn PromiseRejectWithTypeError(&self, p: &Promise, s: USVString, can_gc: CanGc) {
|
||||
p.reject_error(Error::Type(s.0), can_gc);
|
||||
}
|
||||
|
||||
#[cfg_attr(crown, allow(crown::unrooted_must_root))]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue