main
Last change
on this file since 79a0317 was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 3 days ago |
F4 Finalna Verzija
|
-
Property mode
set to
100644
|
File size:
677 bytes
|
Line | |
---|
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 ordinaryOwnMetadataKeys = ReflectMetadataModule.keys;
|
---|
8 | var toMetadataKey = ReflectMetadataModule.toKey;
|
---|
9 |
|
---|
10 | // `Reflect.getOwnMetadataKeys` method
|
---|
11 | // https://github.com/rbuckton/reflect-metadata
|
---|
12 | $({ target: 'Reflect', stat: true }, {
|
---|
13 | getOwnMetadataKeys: function getOwnMetadataKeys(target /* , targetKey */) {
|
---|
14 | var targetKey = arguments.length < 2 ? undefined : toMetadataKey(arguments[1]);
|
---|
15 | return ordinaryOwnMetadataKeys(anObject(target), targetKey);
|
---|
16 | }
|
---|
17 | });
|
---|
Note:
See
TracBrowser
for help on using the repository browser.