← Back to Pull requests

Editorial: remove stale description of how NativeErrors differ #4096

Merged
bakkot merged 1 files (4 lines) on Nov 24, 2026 00:24 UTC
View on GitHub
bakkot bakkot commented on Nov 19, 2026 23:09 UTC
Author

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.

Diff: 4 lines (+2 / -2) across 1 files Reviewer: gibson042 Review duration: 5834m
All Vouch review confidence checks passed
Residual risk 0.04 = Change Risk (0.13) × (1 − Review Confidence (0.70)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.13 · 4 lines diff across 1 files
0.13
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.58 · 2 substantive comment(s)
0.58
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
69%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.096
Real PR Conversation Timeline
6 items
github-actions[bot] github-actions[bot] commented on Nov 19, 2026 23:15 UTC
Bot

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>

bakkot bakkot commented on Nov 19, 2026 23:22 UTC
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 gibson042 approved these changes on Nov 20, 2026 12:48 UTC
Approved Reviewer

Approved these changes.

linusg linusg approved these changes on Nov 20, 2026 17:49 UTC
Approved Reviewer

Approved these changes.

nicolo-ribaudo nicolo-ribaudo approved these changes on Nov 23, 2026 10:18 UTC
Approved Reviewer

Approved these changes.

Reviewers
Assignees
bakkot bakkot
Labels
risk: low confidence: 69.7% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 12.6% (LOW) · Higher = larger blast radius
12.6%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 69.7% · Lower = rushed or shallow review
69.7%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 3.8% · Safe to merge
3.8%
Repository