bluetooth: Make Bluetooth* Object keys enumerable |
|||
Issue description
It would be nice if we could iterate over BluetoothCharacteristicProperties.
...
service.getCharacteristic(0x1234).then(characteristic => {
console.log(Object.keys(characteristic.properties));
// Prints an empty array ;(
});
,
Jun 14 2016
It looks like it is not specific to BluetoothCharacteristicProperties. BluetoothRemoteGATTCharacteristic, BluetoothRemoteGATTService, BluetoothRemoteGATTServer and BluetoothDevice keys are not enumerable either... For info, `Object.keys(window.location)` returns all enumerable keys.
,
Jun 17 2016
"There are probably deep reasons to put attributes on the prototype rather than directly on the object" so let's not clutter crbug with this. |
|||
►
Sign in to add a comment |
|||
Comment 1 by ortuno@chromium.org
, Jun 13 2016