Closed
Bug 881061
Opened 11 years ago
Closed 7 years ago
Remove Iterator
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
DUPLICATE
of bug 1098412
People
(Reporter: bruant.d, Unassigned)
References
(Blocks 1 open bug)
Details
(Keywords: addon-compat, site-compat, Whiteboard: [DocArea=JS])
SpiderMonkey implemented Iterator [1][2] a while ago [3]. Apparently, no other major browser followed.
ES6 is adding for..of loops (already implemented in SpiderMonkey) and the iterator protocol [4].
It seems that the risk of breaking web content is very low; web developers and Firefox developers have a good alternative, so it may be the right time to get rid of Iterator
[1] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Iterators_and_Generators
[2] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Iterator
[3] https://developer.mozilla.org/en-US/docs/Web/JavaScript/New_in_JavaScript/1.7
[4] http://wiki.ecmascript.org/doku.php?id=harmony:iterators
Assignee | ||
Updated•10 years ago
|
Assignee: general → nobody
Updated•10 years ago
|
Comment 1•10 years ago
|
||
I'm using Iterator in my Firefox app. It would be nice if Object.entries would be standardized and implemented before the non-standard Iterator is gone.
https://esdiscuss.org/topic/es6-iteration-over-object-values
Updated•9 years ago
|
Keywords: addon-compat
Comment 2•9 years ago
|
||
Posted the site compatibility doc: https://www.fxsitecompat.com/en-US/docs/2015/iterator-method-will-be-removed/
Comment 3•9 years ago
|
||
Object.entries has implemented in Bug 1208464 so we can now remove this.
Comment 4•9 years ago
|
||
Object.values and Object.entries are non-release-only.
Comment 5•8 years ago
|
||
just to update the my previous comment.
Object.values/entries are now available on all branches.
We should replace Iterator with them, or maybe other standard things.
Updated•7 years ago
|
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → INVALID
Comment 6•7 years ago
|
||
Seems like Iterator was removed as part of bug 1098412.
Resolution: INVALID → DUPLICATE
Updated•7 years ago
|
Keywords: dev-doc-needed
You need to log in
before you can comment on or make changes to this bug.
Description
•