The https://github.com/tc39/proposal-upsert was just announced at Stage 4 and already has support in FF. Waiting on Chrome and Safari. Currently, we manage this ourselves, but the native behavior should be more performant and carry better semantics.
TODO:
// before
const analysis = TemplateEngine.#setIfMissing(TemplateEngine.#stringsToAnalysis, strings, () => ({}));
// after
const analysis = TemplateEngine.#stringsToAnalysis.getOrInsertComputed(strings, () => ({}));

The https://github.com/tc39/proposal-upsert was just announced at Stage 4 and already has support in FF. Waiting on Chrome and Safari. Currently, we manage this ourselves, but the native behavior should be more performant and carry better semantics.
TODO: