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/AddEntriesFromIterable.js

    r0c6b92a r79a0317  
    1313var IteratorValue = require('./IteratorValue');
    1414var ThrowCompletion = require('./ThrowCompletion');
    15 var Type = require('./Type');
     15
     16var isObject = require('../helpers/isObject');
    1617
    1718// https://262.ecma-international.org/15.0/#sec-add-entries-from-iterable
     
    3132                }
    3233                var nextItem = IteratorValue(next);
    33                 if (Type(nextItem) !== 'Object') {
     34                if (!isObject(nextItem)) {
    3435                        var error = ThrowCompletion(new $TypeError('iterator next must return an Object, got ' + inspect(nextItem)));
    3536                        return IteratorClose(iteratorRecord, error);
Note: See TracChangeset for help on using the changeset viewer.