We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ecde38 commit 8edddeeCopy full SHA for 8edddee
src/reflect.ts
@@ -1,7 +1,10 @@
1
import Vue, { VueConstructor } from 'vue'
2
import { VueClass } from './declarations'
3
4
-export const reflectionIsSupported = typeof Reflect !== 'undefined' && Reflect.defineMetadata
+// The rational behind the verbose Reflect-feature check below is the fact that there are Reflect-polyfills
5
+// this add and implementation for Reflect.defineMetadata but not Reflect.getOwnMetadataKeys. Without this
6
+// check consumers will encounter runtime errors.
7
+export const reflectionIsSupported = typeof Reflect !== 'undefined' && Reflect.defineMetadata && Reflect.getOwnMetadataKeys
8
9
export function copyReflectionMetadata (
10
to: VueConstructor,
0 commit comments