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

Rename Array#groupBy and Array#groupByToMap to Array#group and Array#groupToMap #3632

Merged
merged 1 commit into from Aug 3, 2022

Conversation

Constellation
Copy link
Contributor

TC39 decided to rename them to avoid web-compat issue1.
This change follows to it.

…groupToMap

TC39 decided to rename them to avoid web-compat issue[1].
This change follows to it.

[1]: tc39/proposal-array-grouping#39
Copy link
Contributor

@ptomato ptomato left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! This change indeed matches that rename, and I verified there are not yet any other instances of it.

@ptomato ptomato merged commit f74cee5 into tc39:main Aug 3, 2022
@Constellation Constellation deleted the group-by branch August 3, 2022 20:37
webkit-early-warning-system pushed a commit to Constellation/WebKit that referenced this pull request Aug 4, 2022
https://bugs.webkit.org/show_bug.cgi?id=243510

Reviewed by Mark Lam, Justin Michaud, Devin Rousso and Ross Kirsling.

We agreed at TC39 to renaming Array#groupBy and Array#groupByToMap to Array#group and Array#groupToMap
to keep web-compatibility. This patch renames and enables them, stage-4 progress is tracked in [1].
We also upstreamed test262 fix for this[2].

[1]: tc39/proposal-array-grouping#32
[2]: tc39/test262#3632

* Source/JavaScriptCore/builtins/ArrayPrototype.js:
(group):
(groupToMap):
(groupBy): Deleted.
(groupByToMap): Deleted.
* Source/JavaScriptCore/runtime/ArrayPrototype.cpp:
(JSC::ArrayPrototype::finishCreation):
* Source/JavaScriptCore/runtime/OptionsList.h:

Canonical link: https://commits.webkit.org/253101@main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants