Age | Commit message (Collapse) | Author | |
---|---|---|---|
2021-06-20 | LibJS: Consistently make prototype the last argument in Object ctors | Linus Groh | |
This is so that we can reliably allocate them in a template function, e.g. in ordinary_create_from_constructor(): global_object.heap().allocate<T>( global_object, forward<Args>(args)..., *prototype); The majority of objects already take the prototype as the last argument, so I updated the ones that didn't. | |||
2021-06-13 | LibJS: Add the MapIterator built-in and the key/values/entries methods | Idan Horowitz | |
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. |