Re: [heycam/webidl] Class string of default iterator object seems to have been accidentally changed? (#419)

> I'd like a resolution on this soon as Web compatibility concerns have not yet kicked in.

Agreed.

> I am of the opinion that adding the space back in is the way to go here, for consistency with ES.
I remember @bzbarsky was of the opinion that prototype objects should always have different class strings as instances but I could well be misremembering (thus looping him in).

As far as WebIDL is concerned, this is only [specified](https://heycam.github.io/webidl/#ref-for-dfn-class-string) for [interface prototype objects](https://heycam.github.io/webidl/#dfn-interface-prototype-object). So technically, the iterator object's prototype, which isn't an interface prototype object, shouldn't be suffixed with "Prototype".

> I do have to say though that "URLSearchParams IteratorPrototype" looks a bit odd since %IteratorPrototype% is something else.

Yeah. Overall, we should strive for more consistency with ES here, imho. This includes figuring out what to do with the "Prototype" suffix.

-- 
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/419#issuecomment-323778556

Received on Monday, 21 August 2017 15:40:19 UTC