mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-18 15:32:22 +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
Notes:
sideshowbarker
2024-07-17 07:09:53 +09:00
Author: https://github.com/trflynn89
Commit: 3eb2e4e08a
Pull-request: https://github.com/SerenityOS/serenity/pull/19642
10 changed files with 401 additions and 4 deletions
|
@ -143,6 +143,8 @@ set(SOURCES
|
|||
Runtime/Intrinsics.cpp
|
||||
Runtime/Iterator.cpp
|
||||
Runtime/IteratorConstructor.cpp
|
||||
Runtime/IteratorHelper.cpp
|
||||
Runtime/IteratorHelperPrototype.cpp
|
||||
Runtime/IteratorOperations.cpp
|
||||
Runtime/IteratorPrototype.cpp
|
||||
Runtime/JSONObject.cpp
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue