Over in Test for javascript.builtins · Issue #1056 · foolip/mdn-bcd-collector · GitHub I'm trying to figure out if there's already a data source for all of the API surface defined by Ecma262. By this I mean something which could be turned into lists of:
- Constructors on the global object, like
Array
- What static methods are on that constructor, like
Array.isArray
- What methods are on the prototype, like
Array.prototype.forEach
- What properties are only on instances, like
length
Based on this information, it would be possible to generate feature detection tests and cross-check the data in MDN's browser-compat-data project.
I think much of it could be inferred from just the spec's headings, but if the work of turning the spec into a dataset like that has already been done, that would be nice to take a look at.