Closed Bug 1773471 Opened 2 years ago Closed 2 years ago

Rename groupBy* to group*

Categories

(Core :: JavaScript Engine, task, P3)

task

Tracking

()

RESOLVED FIXED
104 Branch
Tracking Status
firefox104 --- fixed

People

(Reporter: yulia, Assigned: hemanth.hm)

References

Details

Attachments

(3 files, 1 obsolete file)

Per discussion at tc39, we will try this new name and see if it is any more compatible than groupBy.

Assignee: nobody → hemanth.hm
Status: NEW → ASSIGNED

Howdy, we recently created docs for Array.groupByToMap and Array.groupToMap and recorded support in FF Nightly.

  1. Can you confirm this is a spec change and that the docs and compatibility should be changed to new names?
  2. Is it just changed, or aliased - i.e. is the old name dead?
  3. Do you think this is stable? i.e. is it worth just leaving as is for now because it could well change again.

As an aside, docs team don't follow specs as fast as dev teams. Adding a tag for docs required always appreciated.

Flags: needinfo?(ystartsev)
  1. Can you confirm this is a spec change and that the docs and compatibility should be changed to new names?

This is a planned spec change due to naming collisions with groupBy in the sugar library (see https://bugzilla.mozilla.org/show_bug.cgi?id=1750812). We need to see if it is web compatible, and as we are currently the only browser with an implementation it sort of fell on us.

  1. Is it just changed, or aliased - i.e. is the old name dead?

Name is changed, not aliased. If this works then groupBy is no longer going to be used.

  1. Do you think this is stable? i.e. is it worth just leaving as is for now because it could well change again.

This is not stable. It is still stage 3 and we are testing to see if this new name will work.

Flags: needinfo?(ystartsev)
Pushed by ystartsev@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/7e22fe4b498e
Renaming to group and groupToMap r=yulia

Backed out for causing mochitest failures in test_xrayToJS.xhtml

  • Backout link
  • Push with failures
  • Failure Log
  • Failure line: TEST-UNEXPECTED-FAIL | js/xpconnect/tests/chrome/test_xrayToJS.xhtml | A property on the Array prototype has changed! You need a security audit from an XPConnect peer - got "["at", "concat", "constructor", "copyWithin", "entries", "every", "fill", "filter", "find", "findIndex", "flat", "flatMap", "forEach", "group", "groupToMap", "includes", "indexOf", "join", "keys", "lastIndexOf", "length", "map", \
Flags: needinfo?(hemanth.hm)

Looks like I need to fix the failing test case, will work on it.

Flags: needinfo?(hemanth.hm)

Comment on attachment 9280437 [details]
Bug 1773471: Renaming to group and groupToMap r?yulia

Revision D148672 was moved to bug 1739648. Setting attachment 9280437 [details] to obsolete.

Attachment #9280437 - Attachment is obsolete: true

Depends on D148672

Depends on D150471

Attachment #9280437 - Attachment is obsolete: false

Comment on attachment 9280437 [details]
Bug 1773471: Renaming to group and groupToMap r?yulia

Revision D148672 was moved to bug 1739648. Setting attachment 9280437 [details] to obsolete.

Attachment #9280437 - Attachment is obsolete: true

Depends on D150471

❯ hg log
changeset:   695269:f96adebd3a6c
tag:         tip
user:        Hemanth HM <hemanth.hm@gmail.com>
date:        Tue Jun 28 10:14:17 2022 -0700
summary:     Bug 1773471: renamed test file r?yulia

changeset:   695268:9558a0285900
bookmark:    central
parent:      692829:5e9018217ee1
user:        Hemanth HM <hemanth.hm@gmail.com>
date:        Tue Jun 28 06:17:43 2022 -0700
summary:     Bug 1773471: fixed test r?yulia

I don't see three commits, hmm

Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 104 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: