mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Updates Bluetooth type to use BufferSource
This commit is contained in:
parent
5bf2e71407
commit
ef0e93c9b1
4 changed files with 17 additions and 11 deletions
|
@ -126,8 +126,8 @@ impl BluetoothRemoteGATTDescriptorMethods for BluetoothRemoteGATTDescriptor {
|
|||
|
||||
// Step 2 - 3.
|
||||
let vec = match value {
|
||||
ArrayBufferViewOrArrayBuffer::ArrayBufferView(mut avb) => avb.to_vec(),
|
||||
ArrayBufferViewOrArrayBuffer::ArrayBuffer(mut ab) => ab.to_vec(),
|
||||
ArrayBufferViewOrArrayBuffer::ArrayBufferView(avb) => avb.to_vec(),
|
||||
ArrayBufferViewOrArrayBuffer::ArrayBuffer(ab) => ab.to_vec(),
|
||||
};
|
||||
if vec.len() > MAXIMUM_ATTRIBUTE_LENGTH {
|
||||
p.reject_error(InvalidModification);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue