mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
refactor: add CanGc as argument to Promise::resolve (#35616)
Signed-off-by: Yerkebulan Tulibergenov <yerkebulan@gmail.com>
This commit is contained in:
parent
adb831eefe
commit
0383ba9a5b
57 changed files with 330 additions and 294 deletions
|
@ -72,7 +72,7 @@ impl MediaDevicesMethods<crate::DomTypeHolder> for MediaDevices {
|
|||
}
|
||||
}
|
||||
|
||||
p.resolve_native(&stream);
|
||||
p.resolve_native(&stream, can_gc);
|
||||
p
|
||||
}
|
||||
|
||||
|
@ -107,7 +107,7 @@ impl MediaDevicesMethods<crate::DomTypeHolder> for MediaDevices {
|
|||
Err(_) => Vec::new(),
|
||||
};
|
||||
|
||||
p.resolve_native(&result_list);
|
||||
p.resolve_native(&result_list, can_gc);
|
||||
|
||||
// Step 3.
|
||||
p
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue