Closed Bug 1704385 Opened 3 years ago Closed 2 years ago

Implement Array find from last

Categories

(Core :: JavaScript Engine, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
103 Branch
Tracking Status
firefox89 --- wontfix
firefox103 --- fixed

People

(Reporter: alex.fdm, Assigned: kingwenlu)

References

(Blocks 1 open bug, )

Details

(Keywords: dev-doc-complete)

Attachments

(4 files)

This proposal is currently in Stage 2.

Severity: -- → N/A
Priority: -- → P3

Hey folks!

I have submitted a patch to implement the proposal.
This is my first time to using Mozilla's toolchain and system.
Please let me know if I've done anything wrong or if there's anything I need to do.

Thanks!

Seems I have missed some non-test262 tests. I'll append them soon.

I've skimmed over the changes and they look really great!

Array and TypedArray properties are also tested in test_xrayToJS.xhtml.

:kingwl I will assign this bug to you, thanks for taking it on! You can assign one of us as a reviewer (i am happy to take a look also) in the phabricator patch.

Assignee: nobody → kingwenlu
Attachment #9234851 - Attachment description: WIP: Bug 1704385 - Implement {Array,%TypedArray%}.prototype.{findLast,findLastIndex} → Bug 1704385 - Implement {Array,%TypedArray%}.prototype.{findLast,findLastIndex}
Attachment #9234851 - Attachment description: Bug 1704385 - Implement {Array,%TypedArray%}.prototype.{findLast,findLastIndex} → WIP: Bug 1704385 - Implement {Array,%TypedArray%}.prototype.{findLast,findLastIndex}

Hey everyone! Sorry for pushing.

What should I do for now? Happy to follow all changes.

Thanks!

can you rebase on master? If you have any issues let me know.

I've reviewed the changes. A few nits -- and requires a rebase.

Okay. In this few days.

Attachment #9234851 - Attachment description: WIP: Bug 1704385 - Implement {Array,%TypedArray%}.prototype.{findLast,findLastIndex} → Bug 1704385 - Implement {Array,%TypedArray%}.prototype.{findLast,findLastIndex}. r?yulia

Some of the non262 tests were failing after I rebased. It turns out that the tests themselves were wrong.

Depends on D121840

Pushed by iireland@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/f00022da18d2
Implement {Array,%TypedArray%}.prototype.{findLast,findLastIndex}. r=yulia
https://hg.mozilla.org/integration/autoland/rev/a320eb1a5edd
Fix testcases r=tcampbell
https://hg.mozilla.org/integration/autoland/rev/4daed96c7c3f
Add pref for Array.findLast r=mgaudet
https://hg.mozilla.org/integration/autoland/rev/05353f93e509
Enable test262 tests for Array.findLast r=mgaudet
Blocks: 1774695

Yulia, I saw that this feature is implemented behind the pref javascript.options.experimental.array_find_last at the moment. Is there already a bug filed for letting it ride the trains? I couldn't find one.

Sebastian

Flags: needinfo?(ystartsev)
Blocks: 1775026

You can find the shipping bug here: https://bugzilla.mozilla.org/show_bug.cgi?id=1775026

It isn't currently riding the trains, it just went to stage 4 two weeks ago so there wasn't time to do that work yet.

Flags: needinfo?(ystartsev)

FF103 docs work for this can be tracked in https://github.com/mdn/content/issues/17473

It is pretty much complete, bar reviews.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: