Module Namespace Objects:
Various Oddities
Adam Klein
TC39
November 2016
Overview
@@iterator: issues
@@iterator: solutions
Either:
Remove @@iterator. Functionality is redundant with Object.keys()
Or:
Make @@iterator more like other iterators, and freeze the function
@@toStringTag
Current state: [[Configurable]] is true, but [[Set]] and [[DefineOwnProperty]] fail
Proposal: [[Configurable]] should be false
[[SetPrototypeOf]]
Current state: Always returns false, even if argument is null
Proposal: Match other spec behavior, returning true if argument is null