fix(compiler-sfc): initialize scope with null prototype object (#11963)
This commit is contained in:
parent
d18d6aa1b2
commit
215e154072
|
@ -102,7 +102,7 @@ export function transformDestructuredProps(
|
|||
return
|
||||
}
|
||||
|
||||
const rootScope: Scope = {}
|
||||
const rootScope: Scope = Object.create(null)
|
||||
const scopeStack: Scope[] = [rootScope]
|
||||
let currentScope: Scope = rootScope
|
||||
const excludedIds = new WeakSet<Identifier>()
|
||||
|
|
Loading…
Reference in New Issue