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.from returning an abrupt completion in step 9.a.

In step 9.a, the abstract operation Construct(C, ...) is called, where this operation eventually invokes OrdinaryCallEvaluateBody.

To verify that an abrupt completion from the constructor body is correctly propagated, I set the this value to function() { throw new Test262Error(); }. This causes OrdinaryCallEvaluateBody to throw, which results in Construct returning an abrupt completion.

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