mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Auto merge of #14393 - dati91:fix, r=jdm
WriteValue should return undefined <!-- Please describe your changes on the following line: --> <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors <!-- Either: --> - [X] There are tests for these changes <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14393) <!-- Reviewable:end -->
This commit is contained in:
commit
7be32770b1
4 changed files with 8 additions and 8 deletions
|
@ -307,9 +307,8 @@ impl AsyncBluetoothListener for BluetoothRemoteGATTCharacteristic {
|
|||
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, &());
|
||||
},
|
||||
BluetoothResponse::EnableNotification(_result) => {
|
||||
promise.resolve_native(promise_cx, self);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue