Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LibJS: Implement the Array Grouping proposal #11412

Merged
merged 4 commits into from
Jan 5, 2022

Commits on Jan 5, 2022

  1. LibJS: Add Handle specialisation for Value

    This allows you to keep an arbitrary JS::Value alive without having to
    hook visit_edges somewhere, e.g. by being a NativeFunction that
    overrides visit_edges.
    
    For example, this allows you to store JS::Handle<JS::Value> as the key
    of a HashMap. This will be used to keep arbitrary Values alive in
    the key of a temporary HashMap in Array.prototype.groupByToMap.
    
    Co-authored-by: Ali Mohammad Pur <[email protected]>
    Lubrsi and alimpfard committed Jan 5, 2022
    Configuration menu
    Copy the full SHA
    c200675 View commit details
    Browse the repository at this point in the history
  2. LibJS: Make MarkedValueList copyable and move assignable

    This is required to store a MarkedValueList as the value of a HashMap.
    Lubrsi committed Jan 5, 2022
    Configuration menu
    Copy the full SHA
    c09a655 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    cd1631e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6d153d1 View commit details
    Browse the repository at this point in the history