Skip to content

Commit 215e154

Browse files
authoredSep 20, 2024··
fix(compiler-sfc): initialize scope with null prototype object (#11963)
1 parent d18d6aa commit 215e154

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎packages/compiler-sfc/src/script/definePropsDestructure.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export function transformDestructuredProps(
102102
return
103103
}
104104

105-
const rootScope: Scope = {}
105+
const rootScope: Scope = Object.create(null)
106106
const scopeStack: Scope[] = [rootScope]
107107
let currentScope: Scope = rootScope
108108
const excludedIds = new WeakSet<Identifier>()

0 commit comments

Comments
 (0)
Please sign in to comment.