aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bluetoothremotegattdescriptor.rs
diff options
context:
space:
mode:
authorAttila Dusnoki <dati91@gmail.com>2016-11-28 16:31:48 +0100
committerAttila Dusnoki <dati91@gmail.com>2016-11-28 17:14:11 +0100
commit50a5639a8b817a9686bd7b90f77197ca823749b9 (patch)
tree4b5ca16a148c6393526d14bf18af71cbc0456d7f /components/script/dom/bluetoothremotegattdescriptor.rs
parent4dbca055c6d225e5fe5030bf2d402b73d2ea94da (diff)
downloadservo-50a5639a8b817a9686bd7b90f77197ca823749b9.tar.gz
servo-50a5639a8b817a9686bd7b90f77197ca823749b9.zip
WriteValue should return undefined
Diffstat (limited to 'components/script/dom/bluetoothremotegattdescriptor.rs')
-rw-r--r--components/script/dom/bluetoothremotegattdescriptor.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/components/script/dom/bluetoothremotegattdescriptor.rs b/components/script/dom/bluetoothremotegattdescriptor.rs
index ffe66c23bec..c5b67a44aec 100644
--- a/components/script/dom/bluetoothremotegattdescriptor.rs
+++ b/components/script/dom/bluetoothremotegattdescriptor.rs
@@ -137,9 +137,8 @@ impl AsyncBluetoothListener for BluetoothRemoteGATTDescriptor {
promise.resolve_native(promise_cx, &value);
},
BluetoothResponse::WriteValue(result) => {
- let value = ByteString::new(result);
- *self.value.borrow_mut() = Some(value.clone());
- promise.resolve_native(promise_cx, &value);
+ *self.value.borrow_mut() = Some(ByteString::new(result));
+ promise.resolve_native(promise_cx, &());
},
_ => promise.reject_error(promise_cx, Error::Type("Something went wrong...".to_owned())),
}