Skip to content

Conversation

@G-Lee1031
Copy link
Contributor

@G-Lee1031 G-Lee1031 commented Jan 30, 2026

Hello.
This PR adds a test case for Array.prototype.unshift returning an abrupt completion in step 4.e.i.

In step 4.e.i, Set(O, ! ToString(j), E, true) is called with Throw set to true.

So, for Set to return an abrupt completion, the abstract operation OrdinarySetWithOwnDescriptor must return false.

To reproduce this, I used an object with a getter but no setter ({ get 0() {} }). This ensures the property '0' is read-only, causing OrdinarySetWithOwnDescriptor to return false and triggering the TypeError as required.

@G-Lee1031 G-Lee1031 requested a review from a team as a code owner January 30, 2026 03:24
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.

3 participants