fix(#321): replace JSON config default clone with structuredClone (#324)

This commit is contained in:
Tom Boucher
2026-05-26 12:22:02 -04:00
committed by GitHub
parent e4f29feabc
commit e5a5a75938
3 changed files with 29 additions and 1 deletions

View File

@@ -158,7 +158,7 @@ function normalizeLegacyKeys(parsed) {
function mergeDefaults(parsed) {
// Start with a deep clone of defaults, then overlay parsed
const defaults = JSON.parse(JSON.stringify(CONFIG_DEFAULTS));
const defaults = structuredClone(CONFIG_DEFAULTS);
return deepMergeConfig(defaults, parsed);
}