source: imaps-frontend/node_modules/core-js/modules/esnext.reflect.define-metadata.js

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: 717 bytes
Line 
1'use strict';
2// TODO: Remove from `core-js@4`
3var $ = require('../internals/export');
4var ReflectMetadataModule = require('../internals/reflect-metadata');
5var anObject = require('../internals/an-object');
6
7var toMetadataKey = ReflectMetadataModule.toKey;
8var ordinaryDefineOwnMetadata = ReflectMetadataModule.set;
9
10// `Reflect.defineMetadata` method
11// https://github.com/rbuckton/reflect-metadata
12$({ target: 'Reflect', stat: true }, {
13 defineMetadata: function defineMetadata(metadataKey, metadataValue, target /* , targetKey */) {
14 var targetKey = arguments.length < 4 ? undefined : toMetadataKey(arguments[3]);
15 ordinaryDefineOwnMetadata(metadataKey, metadataValue, anObject(target), targetKey);
16 }
17});
Note: See TracBrowser for help on using the repository browser.