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/object.assign/implementation.js

    r0c6b92a r79a0317  
    44var objectKeys = require('object-keys');
    55var hasSymbols = require('has-symbols/shams')();
    6 var callBound = require('call-bind/callBound');
    7 var toObject = Object;
     6var callBound = require('call-bound');
     7var $Object = require('es-object-atoms');
    88var $push = callBound('Array.prototype.push');
    99var $propIsEnumerable = callBound('Object.prototype.propertyIsEnumerable');
    10 var originalGetSymbols = hasSymbols ? Object.getOwnPropertySymbols : null;
     10var originalGetSymbols = hasSymbols ? $Object.getOwnPropertySymbols : null;
    1111
    1212// eslint-disable-next-line no-unused-vars
    1313module.exports = function assign(target, source1) {
    1414        if (target == null) { throw new TypeError('target must be an object'); }
    15         var to = toObject(target); // step 1
     15        var to = $Object(target); // step 1
    1616        if (arguments.length === 1) {
    1717                return to; // step 2
    1818        }
    1919        for (var s = 1; s < arguments.length; ++s) {
    20                 var from = toObject(arguments[s]); // step 3.a.i
     20                var from = $Object(arguments[s]); // step 3.a.i
    2121
    2222                // step 3.a.ii:
    2323                var keys = objectKeys(from);
    24                 var getSymbols = hasSymbols && (Object.getOwnPropertySymbols || originalGetSymbols);
     24                var getSymbols = hasSymbols && ($Object.getOwnPropertySymbols || originalGetSymbols);
    2525                if (getSymbols) {
    2626                        var syms = getSymbols(from);
Note: See TracChangeset for help on using the changeset viewer.