mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-21 05:50:55 +08:00
6 lines
296 B
TypeScript
6 lines
296 B
TypeScript
// Checker-level regex fences: function replacements — tsc rejects them
|
|
// before lowering starts. (exec lowers through the match intrinsic and
|
|
// `new RegExp(pattern, flags)` compiles now, so neither appears here.)
|
|
const m = /a(b)/.exec("ab");
|
|
const fn = "abc".replace(/b/, (s: string) => s);
|