source: trip-planner-front/node_modules/core-js/modules/esnext.reflect.metadata.js@ b738035

Last change on this file since b738035 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 605 bytes
Line 
1var $ = require('../internals/export');
2var ReflectMetadataModule = require('../internals/reflect-metadata');
3var anObject = require('../internals/an-object');
4
5var toMetadataKey = ReflectMetadataModule.toKey;
6var ordinaryDefineOwnMetadata = ReflectMetadataModule.set;
7
8// `Reflect.metadata` method
9// https://github.com/rbuckton/reflect-metadata
10$({ target: 'Reflect', stat: true }, {
11 metadata: function metadata(metadataKey, metadataValue) {
12 return function decorator(target, key) {
13 ordinaryDefineOwnMetadata(metadataKey, metadataValue, anObject(target), toMetadataKey(key));
14 };
15 }
16});
Note: See TracBrowser for help on using the repository browser.