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

    r0c6b92a r79a0317  
    77var GetMethod = require('./GetMethod');
    88var IsCallable = require('./IsCallable');
    9 var Type = require('./Type');
     9
     10var isObject = require('../helpers/isObject');
    1011
    1112// https://262.ecma-international.org/6.0/#sec-iteratorclose
    1213
    1314module.exports = function IteratorClose(iterator, completion) {
    14         if (Type(iterator) !== 'Object') {
     15        if (!isObject(iterator)) {
    1516                throw new $TypeError('Assertion failed: Type(iterator) is not Object');
    1617        }
     
    4243        completionThunk = null; // ensure it's not called twice.
    4344
    44         if (Type(innerResult) !== 'Object') {
     45        if (!isObject(innerResult)) {
    4546                throw new $TypeError('iterator .return must return an object');
    4647        }
Note: See TracChangeset for help on using the changeset viewer.