GPT-5 finding
Use of Array.prototype.toSorted limits runtime compatibility (Node 18 lacks it)
- apps/web/scripts/backfill-benchmark-flag.ts
The admin script uses the ES2023 Array.prototype.toSorted method. Many environments still run Node 18 LTS, which does not provide toSorted. Executing the script there will throw a TypeError at runtime, preventing the backfill from running.
Recommendation
Replace toSorted with a Node 18-compatible construct, e.g.: const out = Array.from(byKey.values()); out.sort((a,b) => `${a.owner}/${a.repo}`.localeCompare(`${b.owner}/${b.repo}`)); return out; Alternatively, enforce Node >=20 via engines and CI if the team standardizes on that version.