mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-20 05:40:17 +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.
14 lines
719 B
TypeScript
14 lines
719 B
TypeScript
// What remains OUTSIDE the type world: the standard library is es2023 only
|
|
// — no dyn, no @types/node — so host globals still fail typechecking with
|
|
// "Cannot find name" (SC0001 passthrough), exactly the old fence. (Node
|
|
// APIs the runtime does implement — process, node:fs, setTimeout, console —
|
|
// are shipped declarations, and the fallback also declares the globals real
|
|
// CLI sources reference — Buffer, fetch, setInterval, TextEncoder, ... —
|
|
// which fence at LOWERING instead: see node-fallback-fence.ts.)
|
|
queueMicrotask(() => {});
|
|
const pid = process.pid;
|
|
const cloned = structuredClone({ a: 1 });
|
|
const doc = document;
|
|
const ws = new WebSocket("wss://example.com");
|
|
const store = localStorage;
|