Files
scriptc/packages/runtime/src
Chris Tate 627ebd86a5 Call replace callbacks with unannotated parameters directly
TypeScript types the parameters of an inline replace callback after the
match `any`. An unannotated parameter that is never reassigned, whose
every read means the same for a string or number as for `any`, and that
receives a capture every match sets, the offset or the subject now takes
that value's type. String-search callbacks get the same treatment for the
offset and the subject.

scr_regex_replace_fn calls the closure directly in more cases:
- checked-dynamic parameters, which receive the boxed value Node passes at
  their position (a capture or undefined, the offset, the subject, the
  groups object, then undefined);
- `string | undefined` capture parameters, which receive NULL when the
  match leaves the capture unset;
- a checked-dynamic result, converted with ToString;
- up to six parameters.

Callbacks of the earlier typed form compile to the same call, with a
kinds argument of 0, and run the same per-match work.
2026-10-25 06:16:32 -05:00
..
2026-10-23 17:43:25 -05:00
2026-10-23 09:14:31 -05:00
2026-10-25 00:27:44 -05:00
2026-10-22 18:05:53 -05:00
2026-10-25 00:27:44 -05:00
2026-10-25 00:27:44 -05:00
2026-10-23 19:31:34 -05:00
2026-10-07 19:07:02 -05:00
2026-10-24 02:26:31 -05:00
2026-10-23 21:50:24 -05:00
2026-10-19 17:17:48 -05:00
2026-10-25 00:27:44 -05:00
2026-10-19 07:55:06 -05:00
2026-10-20 21:52:19 -05:00
2026-10-14 17:27:02 -05:00
2026-10-22 06:59:47 -05:00
2026-10-22 03:33:29 -05:00