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/2024/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');
    88var some = require('../helpers/some');
    9 var OwnPropertyKeys = require('../helpers/OwnPropertyKeys');
     9var OwnPropertyKeys = require('own-keys');
    1010
    1111var $isEnumerable = callBound('Object.prototype.propertyIsEnumerable');
     
    1515var IsArray = require('./IsArray');
    1616var IsIntegralNumber = require('./IsIntegralNumber');
    17 var IsPropertyKey = require('./IsPropertyKey');
     17var isPropertyKey = require('../helpers/isPropertyKey');
    1818var SameValue = require('./SameValue');
    1919var ToNumber = require('./ToNumber');
    2020var ToObject = require('./ToObject');
    21 var Type = require('./Type');
     21
     22var isObject = require('../helpers/isObject');
    2223
    2324// https://262.ecma-international.org/12.0/#sec-copydataproperties
    2425
    2526module.exports = function CopyDataProperties(target, source, excludedItems) {
    26         if (Type(target) !== 'Object') {
     27        if (!isObject(target)) {
    2728                throw new $TypeError('Assertion failed: "target" must be an Object');
    2829        }
    2930
    30         if (!IsArray(excludedItems) || !every(excludedItems, IsPropertyKey)) {
     31        if (!IsArray(excludedItems) || !every(excludedItems, isPropertyKey)) {
    3132                throw new $TypeError('Assertion failed: "excludedItems" must be a List of Property Keys');
    3233        }
Note: See TracChangeset for help on using the changeset viewer.