mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Make Promise::reject_error sound
This commit is contained in:
parent
15acd1525e
commit
af2e83f378
19 changed files with 110 additions and 94 deletions
|
@ -2671,7 +2671,7 @@ impl Document {
|
|||
let promise = Promise::new(global.r());
|
||||
// Step 2
|
||||
if self.fullscreen_element.get().is_none() {
|
||||
promise.reject_error(global.get_cx(), Error::Type(String::from("fullscreen is null")));
|
||||
promise.reject_error(Error::Type(String::from("fullscreen is null")));
|
||||
return promise
|
||||
}
|
||||
// TODO Step 3-6
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue