mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Make Promise::resolve_native actually sound
We shouldn't have to pass a raw JSContext pointer, and to enter the promise's context's compartment by hand.
This commit is contained in:
parent
658dc8a501
commit
5addc2dfa3
17 changed files with 42 additions and 53 deletions
|
@ -140,14 +140,14 @@ impl Permissions {
|
|||
// (Request) Step 7. The default algorithm always resolve
|
||||
|
||||
// (Request) Step 8.
|
||||
p.resolve_native(cx, &status);
|
||||
p.resolve_native(&status);
|
||||
},
|
||||
&Operation::Query => {
|
||||
// (Query) Step 6.
|
||||
Permissions::permission_query(cx, &p, &root_desc, &status);
|
||||
|
||||
// (Query) Step 7.
|
||||
p.resolve_native(cx, &status);
|
||||
p.resolve_native(&status);
|
||||
},
|
||||
|
||||
&Operation::Revoke => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue