Skip to content

Commit

Permalink
fix(compiler-sfc): initialize scope with null prototype object (#11963)
Browse files Browse the repository at this point in the history
  • Loading branch information
KazariEX authored Sep 20, 2024
1 parent d18d6aa commit 215e154
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/compiler-sfc/src/script/definePropsDestructure.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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>()
Expand Down

0 comments on commit 215e154

Please sign in to comment.