retired-engine-2667-array-to-sorted-any.ts:6:16 - error SC2020: 'any[].toSorted' is part of the standard library types but has no scriptc lowering yet

  5 | let calls = 0;
  6 | const sorted = source.toSorted((a: any, b: any) => {
    |                ^~~~~~~~~~~~~~~
  7 |   calls++;

  hint: the type checker sees the full standard library, but only the supported surface compiles (https://scriptc.dev/limitations)