mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-03 08:08:43 +00:00
LibJS: Add the MapIterator built-in and the key/values/entries methods
While this implementation should be complete it is based on HashMap's iterator, which currently follows bucket-order instead of the required insertion order. This can be simply fixed by replacing the underlying HashMap member in Map with an enhanced one that maintains a linked list in insertion order.
This commit is contained in:
parent
6c0d5163a1
commit
322c8a3995
Notes:
sideshowbarker
2024-07-18 12:19:44 +09:00
Author: https://github.com/IdanHo
Commit: 322c8a3995
Pull-request: https://github.com/SerenityOS/serenity/pull/8029
12 changed files with 286 additions and 0 deletions
|
@ -37,6 +37,7 @@
|
|||
#include <LibJS/Runtime/IteratorPrototype.h>
|
||||
#include <LibJS/Runtime/JSONObject.h>
|
||||
#include <LibJS/Runtime/MapConstructor.h>
|
||||
#include <LibJS/Runtime/MapIteratorPrototype.h>
|
||||
#include <LibJS/Runtime/MapPrototype.h>
|
||||
#include <LibJS/Runtime/MathObject.h>
|
||||
#include <LibJS/Runtime/NativeFunction.h>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue