From 5addc2dfa36a48a657c36ecbda0331bfaa8ebf11 Mon Sep 17 00:00:00 2001 From: Anthony Ramine Date: Thu, 21 Sep 2017 16:00:48 +0200 Subject: 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. --- components/script/dom/bluetoothdevice.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'components/script/dom/bluetoothdevice.rs') diff --git a/components/script/dom/bluetoothdevice.rs b/components/script/dom/bluetoothdevice.rs index c83befb7684..32a2b99314d 100644 --- a/components/script/dom/bluetoothdevice.rs +++ b/components/script/dom/bluetoothdevice.rs @@ -273,7 +273,7 @@ impl AsyncBluetoothListener for BluetoothDevice { // Step 3.1. self.watching_advertisements.set(true); // Step 3.2. - promise.resolve_native(promise_cx, &()); + promise.resolve_native(&()); }, _ => promise.reject_error(promise_cx, Error::Type("Something went wrong...".to_owned())), } -- cgit v1.2.3