[web-bluetooth] [Scanning] BluetoothLEScanFilter(init) issue (#519)

motla has just created a new issue for https://github.com/WebBluetoothCG/web-bluetooth:

== [Scanning] BluetoothLEScanFilter(init) issue ==
In the `BluetoothLEScanFilter()` constructor of the Web Bluetooth Scanning specification, step 5 is incorrect:

`
5. If init.services is present, initialize this.services as BluetoothUUID.getService(init.services).
`

because `getService` can't take an Array as argument. Instead we could use: `init.services.map(service=>BluetoothUUID.getService(service))`

- See [BluetoothLEScanFilter() constructor](https://webbluetoothcg.github.io/web-bluetooth/scanning.html#dom-bluetoothlescanfilter-bluetoothlescanfilter) 
- https://github.com/WebBluetoothCG/web-bluetooth/blob/0af495e496ec6651783e0a4619e111968559cacc/scanning.bs#L414-L418

Please view or discuss this issue at https://github.com/WebBluetoothCG/web-bluetooth/issues/519 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Saturday, 19 September 2020 09:09:28 UTC