mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00: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
|
@ -4610,7 +4610,10 @@ impl TaskOnce for ElementPerformFullscreenEnter {
|
|||
document
|
||||
.upcast::<EventTarget>()
|
||||
.fire_event(atom!("fullscreenerror"), CanGc::note());
|
||||
promise.reject_error(Error::Type(String::from("fullscreen is not connected")));
|
||||
promise.reject_error(
|
||||
Error::Type(String::from("fullscreen is not connected")),
|
||||
CanGc::note(),
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue