mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-30 07:14:39 +08:00
A source module binding whose one write in the program is an unconditional statement of the guarded synchronous initializer holds that value for every later read, like a const; early reads already carry the frontend's init flag, TDZ sentinel or undefined-admitting type. Marking it immutable hands it to constant folding, borrowed reads and constant tables, so top-level `let N = 1024` no longer keeps index math in doubles behind global loads.