Closed Bug 881061 Opened 11 years ago Closed 7 years ago

Remove Iterator

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

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: general → nobody
Blocks: 1103158
Keywords: dev-doc-needed
Whiteboard: [DocArea=JS]
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
Keywords: site-compat
OS: Linux → All
Hardware: x86 → All
Depends on: 1123118
Depends on: 1123119
Keywords: addon-compat
Depends on: 1208464
Object.entries has implemented in Bug 1208464 so we can now remove this.
Object.values and Object.entries are non-release-only.
Depends on: 1290637
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.
Depends on: 1342731
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → INVALID
Seems like Iterator was removed as part of bug 1098412.
Resolution: INVALID → DUPLICATE
You need to log in before you can comment on or make changes to this bug.