Repository navigation
Editorial: remove stale description of how NativeErrors differ - #4096
Merged
Merged
Conversation
|
The rendered spec preview for this PR is available as a single page at https://tc39.es/ecma262/pr/4096 and as multiple pages at https://tc39.es/ecma262/pr/4096/multipage . |
Member
Author
|
I originally considered just removing the "prototype" part, so this would be "Each of these objects has the structure described below, differing only in [...] the implementation-defined "message" property" but "these objects" describes the constructors, not instances, so that would still be wrong. It is pretty weird that we don't ever say that implementations are allowed to define own "message" properties when throwing errors. We just say "a newly created TypeError object" and make no mention of properties. |
gibson042
approved these changes
Nov 20, 2026
linusg
approved these changes
Nov 20, 2026
nicolo-ribaudo
approved these changes
Nov 23, 2026
…4096) - correct grammar in NativeError introduction
ljharb
force-pushed
the
fix-message-location
branch
from
November 24, 2026 00:10
1ff5d71 to
7cff4af
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The prototype "message" property on classes like TypeError has been defined to be the empty string since ES5; this sentence was present and accurate in ES3 (when it really was implementation-defined) but has been wrong since then.
Allen actually noticed this in 2019 and we landed a PR to remove that sentence entirely in 2024, but it got re-introduced in #3000 presumably as a rebase accident (whoops).
Remove that whole sentence again. Also fix grammar while I'm here.