[heycam/webidl] Inconsistent enumerability on keys/values/entries and friends (#738)

Keys/values/entries in particular:

- [iterable](https://heycam.github.io/webidl/#es-iterable-keys) (and async iterable per #720): enumerable
- [maplike](https://heycam.github.io/webidl/#es-map-entries): nonenumerable
- [setlike](https://heycam.github.io/webidl/#es-set-values): nonenumerable

I'm not sure whether consistency with other methods on the interface prototype object should win (enumerable) or consistency with ES (non-enumerable). I guess I'd lean toward the former?

This gets worse actually for maplike and setlike, where all the "generated" methods seem to be non-enumerable. This includes ones with innocuous names like has, get, the size getter, ...

I wonder if browsers actually follow the spec here :-/.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/issues/738

Received on Monday, 24 June 2019 01:01:20 UTC