mirror of https://github.com/vuejs/core.git
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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
const rootScope: Scope = {}
|
const rootScope: Scope = Object.create(null)
|
||||||
const scopeStack: Scope[] = [rootScope]
|
const scopeStack: Scope[] = [rootScope]
|
||||||
let currentScope: Scope = rootScope
|
let currentScope: Scope = rootScope
|
||||||
const excludedIds = new WeakSet<Identifier>()
|
const excludedIds = new WeakSet<Identifier>()
|
||||||
|
|
Loading…
Reference in New Issue