Update checked-in dependencies
This commit is contained in:
parent
6b0d45a5c6
commit
cc1adb825a
4247 changed files with 144820 additions and 149530 deletions
14
node_modules/es-abstract/2018/CopyDataProperties.js
generated
vendored
14
node_modules/es-abstract/2018/CopyDataProperties.js
generated
vendored
|
|
@ -1,6 +1,10 @@
|
|||
'use strict';
|
||||
|
||||
var callBound = require('../helpers/callBound');
|
||||
var GetIntrinsic = require('get-intrinsic');
|
||||
|
||||
var $TypeError = GetIntrinsic('%TypeError%');
|
||||
|
||||
var callBound = require('call-bind/callBound');
|
||||
var forEach = require('../helpers/forEach');
|
||||
var OwnPropertyKeys = require('../helpers/OwnPropertyKeys');
|
||||
|
||||
|
|
@ -16,19 +20,19 @@ var ToNumber = require('./ToNumber');
|
|||
var ToObject = require('./ToObject');
|
||||
var Type = require('./Type');
|
||||
|
||||
// https://www.ecma-international.org/ecma-262/9.0/#sec-copydataproperties
|
||||
// https://262.ecma-international.org/9.0/#sec-copydataproperties
|
||||
|
||||
module.exports = function CopyDataProperties(target, source, excludedItems) {
|
||||
if (Type(target) !== 'Object') {
|
||||
throw new TypeError('Assertion failed: "target" must be an Object');
|
||||
throw new $TypeError('Assertion failed: "target" must be an Object');
|
||||
}
|
||||
|
||||
if (!IsArray(excludedItems)) {
|
||||
throw new TypeError('Assertion failed: "excludedItems" must be a List of Property Keys');
|
||||
throw new $TypeError('Assertion failed: "excludedItems" must be a List of Property Keys');
|
||||
}
|
||||
for (var i = 0; i < excludedItems.length; i += 1) {
|
||||
if (!IsPropertyKey(excludedItems[i])) {
|
||||
throw new TypeError('Assertion failed: "excludedItems" must be a List of Property Keys');
|
||||
throw new $TypeError('Assertion failed: "excludedItems" must be a List of Property Keys');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue