fix(nuxt): skip deep merge in dev mode for prototype keys (#31205)

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
Daniel Roe 2025-03-04 21:32:12 +00:00 committed by GitHub
parent 99f46e6576
commit 36bb785612
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -35,6 +35,7 @@ function deepDelete (obj: any, newObj: any) {
function deepAssign (obj: any, newObj: any) {
for (const key in newObj) {
if (key === '__proto__' || key === 'constructor') { continue }
const val = newObj[key]
if (isPojoOrArray(val)) {
const defaultVal = Array.isArray(val) ? [] : {}