diff options
Diffstat (limited to 'node_modules/babel-register/node_modules/core-js/library/modules/es7.reflect.delete-metadata.js')
-rw-r--r-- | node_modules/babel-register/node_modules/core-js/library/modules/es7.reflect.delete-metadata.js | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/node_modules/babel-register/node_modules/core-js/library/modules/es7.reflect.delete-metadata.js b/node_modules/babel-register/node_modules/core-js/library/modules/es7.reflect.delete-metadata.js deleted file mode 100644 index 590ed53ce..000000000 --- a/node_modules/babel-register/node_modules/core-js/library/modules/es7.reflect.delete-metadata.js +++ /dev/null @@ -1,15 +0,0 @@ -var metadata = require('./_metadata'); -var anObject = require('./_an-object'); -var toMetaKey = metadata.key; -var getOrCreateMetadataMap = metadata.map; -var store = metadata.store; - -metadata.exp({ deleteMetadata: function deleteMetadata(metadataKey, target /* , targetKey */) { - var targetKey = arguments.length < 3 ? undefined : toMetaKey(arguments[2]); - var metadataMap = getOrCreateMetadataMap(anObject(target), targetKey, false); - if (metadataMap === undefined || !metadataMap['delete'](metadataKey)) return false; - if (metadataMap.size) return true; - var targetMetadata = store.get(target); - targetMetadata['delete'](targetKey); - return !!targetMetadata.size || store['delete'](target); -} }); |