File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ export function componentFactory (
8383
8484 forwardStaticMembers ( Extended , Component , Super )
8585
86- if ( reflectionIsSupported ) {
86+ if ( reflectionIsSupported ( ) ) {
8787 copyReflectionMetadata ( Extended , Component )
8888 }
8989
Original file line number Diff line number Diff line change @@ -4,7 +4,9 @@ import { VueClass } from './declarations'
44// The rational behind the verbose Reflect-feature check below is the fact that there are polyfills
55// which add an implementation for Reflect.defineMetadata but not for Reflect.getOwnMetadataKeys.
66// 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+ }
810
911export function copyReflectionMetadata (
1012 to : VueConstructor ,
You can’t perform that action at this time.
0 commit comments