New issue
Advanced search Search tips

Issue 619559 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Jun 2016
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 3
Type: Feature

Blocking:
issue 483345



Sign in to add a comment

bluetooth: Make Bluetooth* Object keys enumerable

Project Member Reported by fbeaufort@chromium.org, Jun 13 2016

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 ;(
});
 

Comment 1 by ortuno@chromium.org, Jun 13 2016

I think this is a spec issue. We are currently implementing what the spec says.
Summary: bluetooth: Make Bluetooth* Object keys enumerable (was: bluetooth: Make BluetoothCharacteristicProperties keys enumerable)
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.

Status: WontFix (was: Available)
"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