diff options
author | Florian Dold <florian.dold@gmail.com> | 2018-09-20 02:56:13 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2018-09-20 02:56:13 +0200 |
commit | bbff7403fbf46f9ad92240ac213df8d30ef31b64 (patch) | |
tree | c58400ec5124da1c7d56b01aea83309f80a56c3b /node_modules/core-js/modules/library | |
parent | 003fb34971cf63466184351b4db5f7c67df4f444 (diff) |
update packages
Diffstat (limited to 'node_modules/core-js/modules/library')
-rw-r--r-- | node_modules/core-js/modules/library/_export.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/node_modules/core-js/modules/library/_export.js b/node_modules/core-js/modules/library/_export.js index 299a77fc9..02bddc0aa 100644 --- a/node_modules/core-js/modules/library/_export.js +++ b/node_modules/core-js/modules/library/_export.js @@ -2,6 +2,7 @@ var global = require('./_global'); var core = require('./_core'); var ctx = require('./_ctx'); var hide = require('./_hide'); +var has = require('./_has'); var PROTOTYPE = 'prototype'; var $export = function (type, name, source) { @@ -19,7 +20,7 @@ var $export = function (type, name, source) { for (key in source) { // contains in native own = !IS_FORCED && target && target[key] !== undefined; - if (own && key in exports) continue; + if (own && has(exports, key)) continue; // export native or passed out = own ? target[key] : source[key]; // prevent global pollution for namespaces |