Editorial: remove stale description of how NativeErrors differ #4096
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 .
<hidden purpose="for-rewritable-pr-comment-action-use" value="tc39_pr_preview_comment"></hidden>
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.
Approved these changes.
Approved these changes.
Approved these changes.
gibson042
bakkot
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.