mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-21 05:50:55 +08:00
* Add Node 24 URL mutation support * Record preflight baselines for URL mutation fixtures
4 lines
129 B
TypeScript
4 lines
129 B
TypeScript
const u = new URL("https://h/a");
|
|
const key = process.argv[2] === "href" ? "href" : "search";
|
|
u[key] = "https://other.example/";
|