mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30: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
|
@ -4291,7 +4291,7 @@ impl Document {
|
|||
let promise = Promise::new_in_current_realm(InRealm::Already(&in_realm_proof), can_gc);
|
||||
// Step 2
|
||||
if self.fullscreen_element.get().is_none() {
|
||||
promise.reject_error(Error::Type(String::from("fullscreen is null")));
|
||||
promise.reject_error(Error::Type(String::from("fullscreen is null")), can_gc);
|
||||
return promise;
|
||||
}
|
||||
// TODO Step 3-6
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue