Skip to content

Add return-abrupt-from-this-length tests for Change Array by Copy methods #4951

Open
dmvjs wants to merge 1 commit intotc39:mainfrom
dmvjs:add/toreversed-abrupt-from-length
Open

Add return-abrupt-from-this-length tests for Change Array by Copy methods #4951
dmvjs wants to merge 1 commit intotc39:mainfrom
dmvjs:add/toreversed-abrupt-from-length

Conversation

@dmvjs
Copy link
Contributor

@dmvjs dmvjs commented Feb 25, 2026

toReversed, toSorted, toSpliced, and with are all missing coverage for the abrupt completion in step 2 (LengthOfArrayLike). Mirrors the existing pattern in findLast and findLastIndex.

@dmvjs dmvjs requested a review from a team as a code owner February 25, 2026 16:02
@dmvjs dmvjs changed the title Add return-abrupt-from-this-length test for Array.prototype.toReversed Add return-abrupt-from-this-length tests for Change Array by Copy methods Feb 25, 2026
…hods

Mirrors the existing pattern in findLast and findLastIndex.
@dmvjs dmvjs force-pushed the add/toreversed-abrupt-from-length branch from fd262ca to 50bb04e Compare February 26, 2026 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants