mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +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
|
@ -451,7 +451,7 @@ impl WritableStreamDefaultController {
|
|||
};
|
||||
result.unwrap_or_else(|e| {
|
||||
let promise = Promise::new(global, can_gc);
|
||||
promise.reject_error(e);
|
||||
promise.reject_error(e, can_gc);
|
||||
promise
|
||||
})
|
||||
}
|
||||
|
@ -477,7 +477,7 @@ impl WritableStreamDefaultController {
|
|||
};
|
||||
result.unwrap_or_else(|e| {
|
||||
let promise = Promise::new(global, can_gc);
|
||||
promise.reject_error(e);
|
||||
promise.reject_error(e, can_gc);
|
||||
promise
|
||||
})
|
||||
}
|
||||
|
@ -498,7 +498,7 @@ impl WritableStreamDefaultController {
|
|||
};
|
||||
result.unwrap_or_else(|e| {
|
||||
let promise = Promise::new(global, can_gc);
|
||||
promise.reject_error(e);
|
||||
promise.reject_error(e, can_gc);
|
||||
promise
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue