Skip to content

Commit

Permalink
Fix polyfill
Browse files Browse the repository at this point in the history
  • Loading branch information
james-pre committed Oct 7, 2024
1 parent b461a34 commit f6e9e87
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/internal/struct.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ export function _polyfill_contextMetadata(target: object): void {
if (!Symbol?.metadata) {
return;
}
if (Symbol.metadata in target) {
return;
}
Object.defineProperty(target, Symbol.metadata, {
enumerable: true,
configurable: true,
Expand Down

0 comments on commit f6e9e87

Please sign in to comment.