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
parent 4d258e2b10
commit 903597a48d
No known key found for this signature in database
GPG Key ID: 3714AB03996F442B

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) ? [] : {}