wallet-core/node_modules/core-js/modules/es7.reflect.get-own-metadata.js

9 lines
417 B
JavaScript
Raw Normal View History

2016-10-10 03:43:44 +02:00
var metadata = require('./_metadata')
, anObject = require('./_an-object')
, ordinaryGetOwnMetadata = metadata.get
, toMetaKey = metadata.key;
metadata.exp({getOwnMetadata: function getOwnMetadata(metadataKey, target /*, targetKey */){
return ordinaryGetOwnMetadata(metadataKey, anObject(target)
, arguments.length < 3 ? undefined : toMetaKey(arguments[2]));
}});