From f6e9e879922f642c73272260374bfb541d978328 Mon Sep 17 00:00:00 2001 From: James Prevett Date: Mon, 7 Oct 2024 13:10:25 -0500 Subject: [PATCH] Fix polyfill --- src/internal/struct.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/internal/struct.ts b/src/internal/struct.ts index 9073957..8cb3857 100644 --- a/src/internal/struct.ts +++ b/src/internal/struct.ts @@ -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,