Closed
Bug 881226
Opened 12 years ago
Closed 12 years ago
Change {Array, Map, Set} iterator methods to mach the latest spec
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla27
People
(Reporter: sankha, Assigned: wingo)
References
(Blocks 1 open bug)
Details
(Keywords: dev-doc-complete, site-compat, Whiteboard: [DocArea=JS])
This is a follow up of bug 869996.
Quoting Rick's comments in bug 869996, the spec had been changed for the iterator methods of Set.
> Please see 15.16.6.2.2 SetIterator.prototype.next() of the latest
> specification draft.
>
> .next() should produce an ItrResult object that has both a "value" and
> "done" property. The "value" property's own value will be as those shown
> above, the "done" property will be a boolean value that is |true| until
> there are no more values to yield, at which time it will have the boolean
> value |false|
>
> See line 14 comments, StopIteration has been removed from the design of the
> feature
Comment 1•12 years ago
|
||
This actually applies to:
ArrayIterator.prototype.next()
MapIterator.prototype.next()
SetIterator.prototype.next()
| Reporter | ||
Updated•12 years ago
|
Summary: Change Set iterator methods to mach the latest spec → Change {Array, Map, Set} iterator methods to mach the latest spec
Updated•12 years ago
|
Keywords: dev-doc-needed
| Assignee | ||
Updated•12 years ago
|
Blocks: harmony:collections
| Reporter | ||
Comment 2•12 years ago
|
||
I think this has been done for MapIterator and SetIterator objects? Wingo can you confirm?
Then I'll make the changes accordingly in bug 894658 for ArrayIterator methods.
Flags: needinfo?(wingo)
| Reporter | ||
Comment 4•12 years ago
|
||
This has been fixed.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Comment 5•12 years ago
|
||
For documentation purpose, in which release (and if possible in which bug to be able to access info in it).
Flags: needinfo?(sankha93)
| Reporter | ||
Comment 6•12 years ago
|
||
This was done in bug 907077 for Sets, Maps and bug 919948 for the Array Iterators.
Flags: needinfo?(sankha93)
Updated•12 years ago
|
Comment 7•12 years ago
|
||
Added to the site compat doc:
https://developer.mozilla.org/en-US/Firefox/Releases/27/Site_Compatibility
Keywords: site-compat
Updated•12 years ago
|
Whiteboard: [DocArea=JS]
Comment 8•11 years ago
|
||
Updated following documents:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/@@iterator
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/prototype
Also, following are already updated:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/@@iterator
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/prototype
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set/@@iterator
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set/prototype
https://developer.mozilla.org/en-US/Firefox/Releases/27
You need to log in
before you can comment on or make changes to this bug.
Description
•