Add `Iterator.prototype[Symbol.toStringTag]` and `AsyncIterator.prototype[Symbol.toStringTag]`
Categories
(Core :: JavaScript Engine, enhancement)
Tracking
()
People
(Reporter: e7358d9c, Unassigned)
References
(Blocks 1 open bug, )
Details
(Keywords: site-compat)
Bug 1644581 seems to indicate that the reason why the %Symbol.toStringTag%
property on %Iterator.prototype%
broke web compatibility was that it was added as non‑writable.
There also wasn’t any attempt to add the %Symbol.toStringTag%
property to %AsyncIterator.prototype%
, which seems more likely to succeed, given that it’s a much more recent addition to ECMAScript.
Comment 1•4 years ago
|
||
All other @@toStringTag properties are non-writable, so I am not sure if we really should derivative here. Not sure what the trade-offs are between writable and not defining it at all.
This should be discussed on the tc39 github so other people can find this more easily.
Comment 2•4 years ago
|
||
We will not be implementing this until there's evidence that it's web-compatible; let's continue the discussion in proposal issue #115.
Description
•