mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-11-01 07:33:12 +08:00
Response.clone() and Request.clone() on a value typed Response or Request were refused: in TypeScript the fallback declarations had no clone, and the fetch profile listed both as unsupported, so the call compiled to an SC2020 refusal, also in JavaScript where the checker types the value. The checked-dynamic handles already implement them (the body tees, and the clone gets a copy of the headers with the same guard), so typed calls now dispatch to those implementations, as text() and json() do. The declarations gain clone(), and the fetch profile lists both as static methods with the new static-clone fetch fixture as their differential evidence. The surface manifest is regenerated, and the surface-manifest probes that kept clone fenced now fence blob() and formData(). Adds the static-clone fixture and corpus programs fetch-clone.ts and fetch-clone-untyped.mjs, with their corpus costs and preflight/order baselines.