GoogleChromeLabs / GoogleChromeLabs/confluence

API discovery excludes anything not in Object.getOwnPropertyNames()

Open
#229 3 comments 0 reactions 0 assignees View on GitHub
bug data bug
Dominant language
JavaScript
Stars
91
Forks
24
PR merge metrics
No merged PRs in 30d

Description

Umbrella bug for the following issue (example drawn from Safari 9 data):

```js
Object.getOwnPropertyNames(window).filter(function(name) { return name === 'indexedDB'; }).length
// 0
window.hasOwnProperty('indexedDB')
// true
```

More generally: current API discovery strategy misses any API that appears when accessed directly, but appears nowhere in `Object.getOwnPropertyNames()` along the object's prototype chain.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.