fix(compiler-sfc): initialize scope with null prototype object (#11963)

This commit is contained in:
山吹色御守 2024-09-20 16:44:14 +08:00 committed by GitHub
parent d18d6aa1b2
commit 215e154072
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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>()