Closed Bug 1654075 Opened 4 years ago Closed 4 years ago

Add `Iterator.prototype[Symbol.toStringTag]` and `AsyncIterator.prototype[Symbol.toStringTag]`

Categories

(Core :: JavaScript Engine, enhancement)

enhancement

Tracking

()

RESOLVED MOVED

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.

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.

We will not be implementing this until there's evidence that it's web-compatible; let's continue the discussion in proposal issue #115.

Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → INVALID
Resolution: INVALID → MOVED
You need to log in before you can comment on or make changes to this bug.