Skip to content

Conversation

@G-Lee1031
Copy link
Contributor

Hello.
This PR adds test cases to verify that Error.prototype.toString() correctly handles abrupt completions during property lookups, as defined in Error.prototype.toString.

Specifically, it covers:

  • Step 3: Get(O, "name") returning an abrupt completion.
  • Step 5: Get(O, "message") returning an abrupt completion.

I have implemented these cases by using objects with getters that throw a Test262Error. Since both cases share a similar logic, I have included them in a single test file for clarity.

@G-Lee1031 G-Lee1031 requested a review from a team as a code owner January 19, 2026 07:50
@ljharb ljharb force-pushed the error-getter-name-message0116 branch from c32bca1 to a677718 Compare January 19, 2026 20:04
Copy link
Contributor

@ptomato ptomato left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@ptomato ptomato force-pushed the error-getter-name-message0116 branch from a677718 to e0a06a0 Compare January 29, 2026 20:19
@ptomato ptomato merged commit 061c0c3 into tc39:main Jan 29, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants