mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-11-02 07:43:42 +08:00
- The heap census also counts instances a class value constructs: the construct thunk that `newValue` calls counts them after its allocation, as `new` does at its own. - A build with SCRIPTC_HEAP_CENSUS set is its own executable cache entry (`heapCensus` in the early cache's key and route key), and one with SCRIPTC_REPR_REPORT set does not read the early cache, since a hit emits no module and so writes no report. The CLI's startup route defers both to the full compiler. - Test: a warm cache still builds the census executable, counting `new` and class-value constructions, and still writes the report.