Re: [whatwg/webidl] Maplike/setlike iterators shouldn't use MapIteratorPrototype/etc (Issue #1142)

> a Map is something that has a [[MapData]] slot, that i can `Object.getOwnPropertyDescriptor(Map.prototype, 'size').get.call` and receive a meaningful answer.

I know you are very focused on internal slots and brands, but that does not hold for everyone, and it certainly did not hold for the ES2015 editors. We designed Map as a contract based on a set of public methods, and thought that every class which conformed to those methods had an equal right to vend %MapIteratorPrototype% instances from those methods.

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

Message ID: <whatwg/webidl/issues/1142/1119100067@github.com>

Received on Thursday, 5 May 2022 22:28:21 UTC