diff options
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 |