Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow for implementation-defined Error properties #4433

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

anba
Copy link
Contributor

@anba anba commented Mar 21, 2025

Various implementations (JSC, V8, SM) define additional properties on Error instances. Adjust the test case to account for that.

@anba anba requested a review from a team as a code owner March 21, 2025 15:24
Copy link
Contributor

@Ms2ger Ms2ger left a comment

Choose a reason for hiding this comment

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

Please add a note to the test why it's written this way

Various implementations (JSC, V8, SM) define additional properties on
Error instances. Adjust the test case to account for that.
@anba anba force-pushed the supressed-error-extensions branch from 3817ba8 to e776756 Compare March 21, 2025 16:58
@anba
Copy link
Contributor Author

anba commented Mar 21, 2025

Please add a note to the test why it's written this way

Done. Added the following comment:

// Allow implementation-defined properties before "message" and after "suppressed".

Copy link
Member

@ljharb ljharb left a comment

Choose a reason for hiding this comment

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

it might be cleaner to slice keys at messageIndex for 3 total items, and compareArray, but either way is fine

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