File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ export function componentFactory (
83
83
84
84
forwardStaticMembers ( Extended , Component , Super )
85
85
86
- if ( reflectionIsSupported ) {
86
+ if ( reflectionIsSupported ( ) ) {
87
87
copyReflectionMetadata ( Extended , Component )
88
88
}
89
89
Original file line number Diff line number Diff line change @@ -4,7 +4,9 @@ import { VueClass } from './declarations'
4
4
// The rational behind the verbose Reflect-feature check below is the fact that there are polyfills
5
5
// which add an implementation for Reflect.defineMetadata but not for Reflect.getOwnMetadataKeys.
6
6
// Without this check consumers will encounter hard to track down runtime errors.
7
- export const reflectionIsSupported = typeof Reflect !== 'undefined' && Reflect . defineMetadata && Reflect . getOwnMetadataKeys
7
+ export function reflectionIsSupported ( ) {
8
+ return typeof Reflect !== 'undefined' && Reflect . defineMetadata && Reflect . getOwnMetadataKeys
9
+ }
8
10
9
11
export function copyReflectionMetadata (
10
12
to : VueConstructor ,
You can’t perform that action at this time.
0 commit comments