Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/es-abstract/2019/CopyDataProperties.js
r0c6b92a r79a0317 3 3 var $TypeError = require('es-errors/type'); 4 4 5 var callBound = require('call-b ind/callBound');5 var callBound = require('call-bound'); 6 6 var forEach = require('../helpers/forEach'); 7 var OwnPropertyKeys = require(' ../helpers/OwnPropertyKeys');7 var OwnPropertyKeys = require('own-keys'); 8 8 9 9 var $isEnumerable = callBound('Object.prototype.propertyIsEnumerable'); … … 13 13 var IsArray = require('./IsArray'); 14 14 var IsInteger = require('./IsInteger'); 15 var IsPropertyKey = require('./IsPropertyKey');15 var isPropertyKey = require('../helpers/isPropertyKey'); 16 16 var SameValue = require('./SameValue'); 17 17 var ToNumber = require('./ToNumber'); 18 18 var ToObject = require('./ToObject'); 19 var Type = require('./Type'); 19 20 var isObject = require('../helpers/isObject'); 20 21 21 22 // https://262.ecma-international.org/9.0/#sec-copydataproperties 22 23 23 24 module.exports = function CopyDataProperties(target, source, excludedItems) { 24 if ( Type(target) !== 'Object') {25 if (!isObject(target)) { 25 26 throw new $TypeError('Assertion failed: "target" must be an Object'); 26 27 } … … 30 31 } 31 32 for (var i = 0; i < excludedItems.length; i += 1) { 32 if (! IsPropertyKey(excludedItems[i])) {33 if (!isPropertyKey(excludedItems[i])) { 33 34 throw new $TypeError('Assertion failed: "excludedItems" must be a List of Property Keys'); 34 35 }
Note:
See TracChangeset
for help on using the changeset viewer.