es7.reflect.define-metadata.js 363 B

12345678
  1. var metadata = require('./_metadata');
  2. var anObject = require('./_an-object');
  3. var toMetaKey = metadata.key;
  4. var ordinaryDefineOwnMetadata = metadata.set;
  5. metadata.exp({ defineMetadata: function defineMetadata(metadataKey, metadataValue, target, targetKey) {
  6. ordinaryDefineOwnMetadata(metadataKey, metadataValue, anObject(target), toMetaKey(targetKey));
  7. } });