Ignore:
Timestamp:
01/21/25 03:08:24 (3 days ago)
Author:
stefan toskovski <stefantoska84@…>
Branches:
main
Parents:
0c6b92a
Message:

F4 Finalna Verzija

File:
1 edited

Legend:

Unmodified
Added
Removed
  • imaps-frontend/node_modules/es-abstract/2020/CopyDataProperties.js

    r0c6b92a r79a0317  
    33var $TypeError = require('es-errors/type');
    44
    5 var callBound = require('call-bind/callBound');
     5var callBound = require('call-bound');
    66var forEach = require('../helpers/forEach');
    77var every = require('../helpers/every');
    8 var OwnPropertyKeys = require('../helpers/OwnPropertyKeys');
     8var OwnPropertyKeys = require('own-keys');
    99
    1010var $isEnumerable = callBound('Object.prototype.propertyIsEnumerable');
     
    1414var IsArray = require('./IsArray');
    1515var IsInteger = require('./IsInteger');
    16 var IsPropertyKey = require('./IsPropertyKey');
     16var isPropertyKey = require('../helpers/isPropertyKey');
    1717var SameValue = require('./SameValue');
    1818var ToNumber = require('./ToNumber');
    1919var ToObject = require('./ToObject');
    20 var Type = require('./Type');
     20
     21var isObject = require('../helpers/isObject');
    2122
    2223// https://262.ecma-international.org/11.0/#sec-copydataproperties
    2324
    2425module.exports = function CopyDataProperties(target, source, excludedItems) {
    25         if (Type(target) !== 'Object') {
     26        if (!isObject(target)) {
    2627                throw new $TypeError('Assertion failed: "target" must be an Object');
    2728        }
    2829
    29         if (!IsArray(excludedItems) || !every(excludedItems, IsPropertyKey)) {
     30        if (!IsArray(excludedItems) || !every(excludedItems, isPropertyKey)) {
    3031                throw new $TypeError('Assertion failed: "excludedItems" must be a List of Property Keys');
    3132        }
Note: See TracChangeset for help on using the changeset viewer.