Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/es-abstract/helpers/assign.js')
-rw-r--r--node_modules/es-abstract/helpers/assign.js11
1 files changed, 8 insertions, 3 deletions
diff --git a/node_modules/es-abstract/helpers/assign.js b/node_modules/es-abstract/helpers/assign.js
index 2533d20a3..7e6666e7a 100644
--- a/node_modules/es-abstract/helpers/assign.js
+++ b/node_modules/es-abstract/helpers/assign.js
@@ -1,15 +1,20 @@
-var bind = require('function-bind');
-var has = bind.call(Function.call, Object.prototype.hasOwnProperty);
+'use strict';
-var $assign = Object.assign;
+var GetIntrinsic = require('../GetIntrinsic');
+
+var has = require('has');
+
+var $assign = GetIntrinsic('%Object%').assign;
module.exports = function assign(target, source) {
if ($assign) {
return $assign(target, source);
}
+ // eslint-disable-next-line no-restricted-syntax
for (var key in source) {
if (has(source, key)) {
+ // eslint-disable-next-line no-param-reassign
target[key] = source[key];
}
}