fix(runtime-core): avoid mutating EMPTY_ARR when setting dev root (#2419)
also freeze EMPTY_ARR in dev fix #2413
This commit is contained in:
@@ -378,7 +378,7 @@ export function normalizePropsOptions(
|
||||
}
|
||||
|
||||
if (!raw && !hasExtends) {
|
||||
return (comp.__props = EMPTY_ARR)
|
||||
return (comp.__props = EMPTY_ARR as any)
|
||||
}
|
||||
|
||||
if (isArray(raw)) {
|
||||
|
||||
Reference in New Issue
Block a user