mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-15 04:50:40 +08:00
- The ratified rename rider (world-unification §7 lane 5): "DOM" collided with the browser DOM and, post-lane-1, the structure is no longer a document tree. Comments and doc prose now say "the checked-dynamic tree" for the noun and "dyn" adjectivally; runtime symbol names (scr_dyn_*), the error.domClone libCall, and the real web DOMException family are unchanged. - The few user-facing strings carrying the nickname move with it (the structuredClone cyclic message, the dc subscriber/publish fences, two emitter ICE texts); diagnostics snapshots regenerated (96 pass). One private compiler constant (DOM_PROTO_METHOD_NAMES -> DYN_PROTO_METHOD_NAMES) rides along. - Mechanical sweep, 142 files, comments/prose only — no behavior change.
11 lines
614 B
TypeScript
11 lines
614 B
TypeScript
// The honest static subset of `any` compiles now — bindings, params,
|
|
// returns, assignments, reads ride the checked-dynamic tree — so what this
|
|
// fixture pins is the RESIDUE: operations only the engine's full JS
|
|
// semantics can run. Each site reports the choice: opt into the embedded
|
|
// engine, or stay static with 'unknown' + a checked cast.
|
|
const n: any = 41;
|
|
const sum = n + 1; // ToNumber/ToPrimitive coercion — engine only
|
|
var { x } = <any>0; // destructuring a non-object 'any' — engine only
|
|
for (const v of n as any) console.log(v); // iterating an 'any' value
|
|
export const marker: number = 1;
|