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/2018/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');
    7 var OwnPropertyKeys = require('../helpers/OwnPropertyKeys');
     7var OwnPropertyKeys = require('own-keys');
    88
    99var $isEnumerable = callBound('Object.prototype.propertyIsEnumerable');
     
    1313var IsArray = require('./IsArray');
    1414var IsInteger = require('./IsInteger');
    15 var IsPropertyKey = require('./IsPropertyKey');
     15var isPropertyKey = require('../helpers/isPropertyKey');
    1616var SameValue = require('./SameValue');
    1717var ToNumber = require('./ToNumber');
    1818var ToObject = require('./ToObject');
    19 var Type = require('./Type');
     19
     20var isObject = require('../helpers/isObject');
    2021
    2122// https://262.ecma-international.org/9.0/#sec-copydataproperties
    2223
    2324module.exports = function CopyDataProperties(target, source, excludedItems) {
    24         if (Type(target) !== 'Object') {
     25        if (!isObject(target)) {
    2526                throw new $TypeError('Assertion failed: "target" must be an Object');
    2627        }
     
    3031        }
    3132        for (var i = 0; i < excludedItems.length; i += 1) {
    32                 if (!IsPropertyKey(excludedItems[i])) {
     33                if (!isPropertyKey(excludedItems[i])) {
    3334                        throw new $TypeError('Assertion failed: "excludedItems" must be a List of Property Keys');
    3435                }
Note: See TracChangeset for help on using the changeset viewer.