diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2017-09-21 16:00:48 +0200 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2017-09-21 16:00:48 +0200 |
commit | 5addc2dfa36a48a657c36ecbda0331bfaa8ebf11 (patch) | |
tree | db35ab2ddce4a406097d59f697ccc01ab0a555f7 /components/script/dom/vr.rs | |
parent | 658dc8a5013973ceff3c91291d5536043b2e8e58 (diff) | |
download | servo-5addc2dfa36a48a657c36ecbda0331bfaa8ebf11.tar.gz servo-5addc2dfa36a48a657c36ecbda0331bfaa8ebf11.zip |
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.
Diffstat (limited to 'components/script/dom/vr.rs')
-rw-r--r-- | components/script/dom/vr.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/vr.rs b/components/script/dom/vr.rs index 60edcf41050..651c85c8f6f 100644 --- a/components/script/dom/vr.rs +++ b/components/script/dom/vr.rs @@ -87,7 +87,7 @@ impl VRMethods for VR { let displays: Vec<Root<VRDisplay>> = self.displays.borrow().iter() .map(|d| Root::from_ref(&**d)) .collect(); - promise.resolve_native(promise.global().get_cx(), &displays); + promise.resolve_native(&displays); promise } |