Opal-Estate-Pro/node_modules/core-js/library/modules/es7.reflect.get-own-metadata.js
2019-09-13 09:44:33 +07:00

10 lines
384 B
JavaScript

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