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

    r0c6b92a r79a0317  
    22
    33var $TypeError = require('es-errors/type');
    4 
     4var inspect = require('object-inspect');
     5var isInteger = require('math-intrinsics/isInteger');
    56var regexTester = require('safe-regex-test');
    6 var every = require('../helpers/every');
    7 
    8 var inspect = require('object-inspect');
    97
    108var Get = require('./Get');
     
    1513var substring = require('./substring');
    1614var ToString = require('./ToString');
    17 var Type = require('./Type');
    1815
    19 var isInteger = require('../helpers/isInteger');
     16var every = require('../helpers/every');
     17var isObject = require('../helpers/isObject');
     18var isPrefixOf = require('../helpers/isPrefixOf');
    2019var isStringOrUndefined = require('../helpers/isStringOrUndefined');
    21 var isPrefixOf = require('../helpers/isPrefixOf');
    2220
    2321var startsWithDollarDigit = regexTester(/^\$[0-9]/);
     
    4442        }
    4543
    46         if (typeof namedCaptures !== 'undefined' && Type(namedCaptures) !== 'Object') {
     44        if (typeof namedCaptures !== 'undefined' && !isObject(namedCaptures)) {
    4745                throw new $TypeError('Assertion failed: `namedCaptures` must be `undefined` or an Object');
    4846        }
     
    125123                                ref = substring(templateRemainder, 0, gtPos + 1); // step 5.g.iii.1
    126124                                var groupName = substring(templateRemainder, 2, gtPos); // step 5.g.iii.2
    127                                 if (Type(namedCaptures) !== 'Object') {
     125                                if (!isObject(namedCaptures)) {
    128126                                        throw new $TypeError('Assertion failed: Type(namedCaptures) is not Object'); // step 5.g.iii.3
    129127                                }
Note: See TracChangeset for help on using the changeset viewer.