We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ecde38 commit 533ce16Copy full SHA for 533ce16
src/reflect.ts
@@ -18,7 +18,12 @@ export function copyReflectionMetadata (
18
})
19
}
20
21
+const reflectionMetadataKeysIsSupported = reflectionIsSupported && Reflect.getOwnMetadataKeys
22
+
23
function forwardMetadata (to: object, from: object, propertyKey?: string): void {
24
+ if (!reflectionMetadataKeysIsSupported) {
25
+ return
26
+ }
27
const metaKeys = propertyKey
28
? Reflect.getOwnMetadataKeys(from, propertyKey)
29
: Reflect.getOwnMetadataKeys(from)
0 commit comments