mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:37:35 +00:00
LibJS: Implement Iterator.prototype.map
This uses a new Iterator type called IteratorHelper. This does not implement IteratorHelper.prototype.return as that relies on generator objects (i.e. the internal slots of JS::GeneratorObject), which are not hooked up here.
This commit is contained in:
parent
7ff6b472c0
commit
3eb2e4e08a
10 changed files with 401 additions and 4 deletions
|
@ -110,6 +110,7 @@
|
|||
__JS_ENUMERATE(ArrayIterator, array_iterator) \
|
||||
__JS_ENUMERATE(AsyncIterator, async_iterator) \
|
||||
__JS_ENUMERATE(Intl::SegmentIterator, intl_segment_iterator) \
|
||||
__JS_ENUMERATE(IteratorHelper, iterator_helper) \
|
||||
__JS_ENUMERATE(MapIterator, map_iterator) \
|
||||
__JS_ENUMERATE(RegExpStringIterator, regexp_string_iterator) \
|
||||
__JS_ENUMERATE(SetIterator, set_iterator) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue