File tree
Expand file treeCollapse file tree1 file changed
+4
-1
lines changed Expand file treeCollapse file tree1 file changed
+4
-1
lines changed Original file line number | Diff line number | Diff line change |
---|
|
1 | 1 | import Vue, { VueConstructor } from 'vue'
|
2 | 2 | import { VueClass } from './declarations'
|
3 | 3 |
|
4 |
| -export const reflectionIsSupported = typeof Reflect !== 'undefined' && Reflect.defineMetadata |
| 4 | +// 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 |
5 | 8 |
|
6 | 9 | export function copyReflectionMetadata (
|
7 | 10 | to: VueConstructor,
|
|
You can’t perform that action at this time.
0 commit comments