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

@EdgarChen @saschanaz @yuki3 @shvaikalesh let's settle this once and for all. This is trivial but is an interop issue and consistency issue and now I started testing it in https://github.com/web-platform-tests/wpt/commit/31f5f5e952f84df73a9673c5ecc2e835d4ba44dc and that caused a bunch of WPT idlharness failures :).

Here is my proposal:

- maplike:
  - size, entries, keys, values, forEach, get, has, set, delete, clear: enumerable (*)
  - `@@iterator`: non-enumerable
- setlike:
  - size, entries, keys, values, forEach, has, add, delete, clear: enumerable (*)
  - `@@iterator`: non-enumerable
- iterables:
  - entries, keys, values, forEach: enumerable
  - `@@iterator`: non-enumerable

(*) = change from current Web IDL spec.

Does this sound good? Explicit thumbs-up votes appreciated, especially from implementers.

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

Message ID: <whatwg/webidl/issues/738/1182662322@github.com>

Received on Wednesday, 13 July 2022 01:33:43 UTC