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
[JSC] Rename Array#groupBy to Array#group and enable them #2990
[JSC] Rename Array#groupBy to Array#group and enable them #2990
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
6b2ba67
to
330465b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
r=me too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
r=me with question
@@ -541,7 +541,7 @@ bool canUseWebAssemblyFastMemory(); | |||
/* Feature Flags */\ | |||
\ | |||
v(Bool, useArrayFindLastMethod, true, Normal, "Expose the findLast() and findLastIndex() methods on Array and %TypedArray%.") \ | |||
v(Bool, useArrayGroupByMethod, false, Normal, "Expose the groupBy() and groupByToMap() methods on Array.") \ | |||
v(Bool, useArrayGroupMethod, true, Normal, "Expose the group() and groupToMap() methods on Array.") \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We enable this by default?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this patch enables it.
330465b
to
a046d9f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you also update the entries in WI.NativePrototypeFunctionParameters
for Web Inspector? :)
a046d9f
to
c555596
Compare
c555596
to
793f554
Compare
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
793f554
to
317e700
Compare
Committed 253101@main (317e700): https://commits.webkit.org/253101@main Reviewed commits have been landed. Closing PR #2990 and removing active labels. |
317e700