2017-08-14 05:01:11 +02:00
|
|
|
var metadata = require('./_metadata');
|
|
|
|
var anObject = require('./_an-object');
|
|
|
|
var toMetaKey = metadata.key;
|
|
|
|
var ordinaryDefineOwnMetadata = metadata.set;
|
2017-05-28 00:38:50 +02:00
|
|
|
|
2017-08-14 05:01:11 +02:00
|
|
|
metadata.exp({ defineMetadata: function defineMetadata(metadataKey, metadataValue, target, targetKey) {
|
2017-05-28 00:38:50 +02:00
|
|
|
ordinaryDefineOwnMetadata(metadataKey, metadataValue, anObject(target), toMetaKey(targetKey));
|
2017-08-14 05:01:11 +02:00
|
|
|
} });
|