main
Last change
on this file was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 4 days ago |
F4 Finalna Verzija
|
-
Property mode
set to
100644
|
File size:
688 bytes
|
Rev | Line | |
---|
[79a0317] | 1 | 'use strict';
|
---|
| 2 | // TODO: Remove from `core-js@4`
|
---|
| 3 | var $ = require('../internals/export');
|
---|
| 4 | var ReflectMetadataModule = require('../internals/reflect-metadata');
|
---|
| 5 | var anObject = require('../internals/an-object');
|
---|
| 6 |
|
---|
| 7 | var ordinaryGetOwnMetadata = ReflectMetadataModule.get;
|
---|
| 8 | var toMetadataKey = ReflectMetadataModule.toKey;
|
---|
| 9 |
|
---|
| 10 | // `Reflect.getOwnMetadata` method
|
---|
| 11 | // https://github.com/rbuckton/reflect-metadata
|
---|
| 12 | $({ target: 'Reflect', stat: true }, {
|
---|
| 13 | getOwnMetadata: function getOwnMetadata(metadataKey, target /* , targetKey */) {
|
---|
| 14 | var targetKey = arguments.length < 3 ? undefined : toMetadataKey(arguments[2]);
|
---|
| 15 | return ordinaryGetOwnMetadata(metadataKey, anObject(target), targetKey);
|
---|
| 16 | }
|
---|
| 17 | });
|
---|
Note:
See
TracBrowser
for help on using the repository browser.