Editorial: correct the upper bound in MakeMatchIndicesIndexPairArray #4061
All Vouch review confidence checks passed
Residual risk 0.09 = Change Risk (0.17) × (1 − Review Confidence (0.48)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.17 · 2 lines diff across 1 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.00 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
Bedrock Claude 3 · Risk Narration
(disconnected)
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
Shallow Review Depth
shallow_review_depth
0.350
Diff Size
diff_size
0.066
Real PR Conversation Timeline
4 items
Approved
Approved these changes.
Approved
Approved these changes.
Approved
Approved these changes.
linusg
JinDX
MakeMatchIndicesIndexPairArray asserts that the length of
indicesis strictly less than 2^32 − 1. The caller permits equality at this boundary.The Pattern early error rejects a capturing-group count C only when C ≥ 2^32 − 1. RegExpBuiltinExec likewise asserts C < 2^32 − 1. Its
indiceslist contains one entry for the entire match and one entry for every capturing group, so its length is C + 1. For the permitted boundary C = 2^32 − 2, that length is 2^32 − 1. ArrayCreate also permits this length; it throws only when the length is greater than 2^32 − 1.<!--
If you are changing the signature or behavior of an existing construct, please check if this affects downstream dependencies (searching for the construct's name is sufficient) and if needed file an issue:
Web IDL — file an issue
HTML Standard — file an issue
ECMAScript Intl API - file an issue
WebAssembly - file an issue
Note: please ensure that the "Allow edits and access to secrets by maintainers" checkbox remains checked.
-->