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

Editorial: Remove "message" property from list of Error differences #3292

Merged
merged 1 commit into from
Mar 21, 2024

Conversation

drakedevel
Copy link
Contributor

As noted in #1794 (comment) the language about an implementation-defined "message" property in the NativeError section is an outdated holdover from ES3, since the definition was changed to be the empty string in ES5. The outdated language was subsequently duplicated to the Error section in #2040.

Since the message prototype property is defined to be the empty string for all Error types, I thought it would be least confusing to remove it from the "differing only in ..." list entirely.

I am also inclined to update only in the name used as the constructor name instead of _NativeError_ to only in the constructor name in the Error Objects copy, since that clause isn't specific to NativeError. I can roll that into this PR or open a new one if that sounds good.

spec.html Outdated Show resolved Hide resolved
@ljharb ljharb self-assigned this Mar 20, 2024
@ljharb
Copy link
Member

ljharb commented Mar 20, 2024

@drakedevel i'm happy to take care of the suggestions, but can you please sign the contributor form if you haven't yet?

spec.html Outdated Show resolved Hide resolved
Copy link
Contributor

@bakkot bakkot left a comment

Choose a reason for hiding this comment

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

lgtm with the proposed changes.

ljharb pushed a commit to drakedevel/ecma262 that referenced this pull request Mar 20, 2024
…c39#3292)

This language is a holdover from ES3, the "message" property of all Error prototype objects is defined to be the empty string since ES5.

Co-authored-by: Andrew Drake <adrake@adrake.org>
Co-authored-by: Kevin Gibbons <bakkot@gmail.com>
@ljharb ljharb force-pushed the error-message-intro branch from 55588cc to 21aa00e Compare March 20, 2024 23:06
@ljharb ljharb marked this pull request as draft March 20, 2024 23:09
@drakedevel
Copy link
Contributor Author

@drakedevel i'm happy to take care of the suggestions, but can you please sign the contributor form if you haven't yet?

Signed!

@ljharb ljharb marked this pull request as ready for review March 21, 2024 16:45
ljharb pushed a commit to drakedevel/ecma262 that referenced this pull request Mar 21, 2024
…c39#3292)

This language is a holdover from ES3, the "message" property of all Error prototype objects is defined to be the empty string since ES5.

Co-authored-by: Andrew Drake <adrake@adrake.org>
Co-authored-by: Kevin Gibbons <bakkot@gmail.com>
@ljharb ljharb force-pushed the error-message-intro branch from 21aa00e to 2ddd79e Compare March 21, 2024 16:45
@ljharb ljharb requested a review from a team March 21, 2024 16:45
@bakkot bakkot added the ready to merge Editors believe this PR needs no further reviews, and is ready to land. label Mar 21, 2024
…c39#3292)

This language is a holdover from ES3, the "message" property of all Error prototype objects is defined to be the empty string since ES5.

Co-authored-by: Andrew Drake <adrake@adrake.org>
Co-authored-by: Kevin Gibbons <bakkot@gmail.com>
@ljharb ljharb force-pushed the error-message-intro branch from 2ddd79e to 3d5a70b Compare March 21, 2024 16:55
@ljharb ljharb merged commit 3d5a70b into tc39:main Mar 21, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
editorial change ready to merge Editors believe this PR needs no further reviews, and is ready to land.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants