Re: [web-bluetooth] Allow manufacturerData and serviceData filters to requestDevice() to be Uint8Array or sequence<octet>

Note that no implementation that I am aware of supports specifying `manufacturerData` or `serviceData` filters at this time. That section of the specification is marked unstable. The `dataPrefix` and `mask` fields are currently defined as a `BufferSource` and so should likely be changed to a new typedef:

```
typedef (BufferSource or sequence<octet>) BufferOrOctetSequence;
```

I don't see an example of this in any other specification however it seems like it would be generally useful. My only concern is whether this would encourage developers not to use ArrayBuffers in places where it is preferable for performance reasons.

-- 
GitHub Notification of comment by reillyeon
Please view or discuss this issue at https://github.com/WebBluetoothCG/web-bluetooth/issues/407#issuecomment-418455191 using your GitHub account

Received on Tuesday, 4 September 2018 17:37:50 UTC