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/2023/GetIteratorFromMethod.js

    r0c6b92a r79a0317  
    66var GetV = require('./GetV');
    77var IsCallable = require('./IsCallable');
    8 var Type = require('./Type');
     8
     9var isObject = require('../helpers/isObject');
    910
    1011// https://262.ecma-international.org/14.0/#sec-getiteratorfrommethod
     
    1617
    1718        var iterator = Call(method, obj); // step 1
    18         if (Type(iterator) !== 'Object') {
     19        if (!isObject(iterator)) {
    1920                throw new $TypeError('iterator must return an object'); // step 2
    2021        }
Note: See TracChangeset for help on using the changeset viewer.