mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +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
|
@ -160,14 +160,14 @@ impl Permissions {
|
|||
// (Request) Step 7. The default algorithm always resolve
|
||||
|
||||
// (Request) Step 8.
|
||||
p.resolve_native(&status);
|
||||
p.resolve_native(&status, can_gc);
|
||||
},
|
||||
Operation::Query => {
|
||||
// (Query) Step 6.
|
||||
Permissions::permission_query(cx, &p, &root_desc, &status);
|
||||
|
||||
// (Query) Step 7.
|
||||
p.resolve_native(&status);
|
||||
p.resolve_native(&status, can_gc);
|
||||
},
|
||||
|
||||
Operation::Revoke => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue