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

    r0c6b92a r79a0317  
    44
    55var regexTester = require('safe-regex-test');
    6 var every = require('../helpers/every');
    7 
    86var inspect = require('object-inspect');
     7var isInteger = require('math-intrinsics/isInteger');
    98
    109var Get = require('./Get');
     
    1514var substring = require('./substring');
    1615var ToString = require('./ToString');
    17 var Type = require('./Type');
    1816
    19 var isInteger = require('../helpers/isInteger');
     17var every = require('../helpers/every');
     18var isObject = require('../helpers/isObject');
     19var isPrefixOf = require('../helpers/isPrefixOf');
    2020var isStringOrUndefined = require('../helpers/isStringOrUndefined');
    21 var isPrefixOf = require('../helpers/isPrefixOf');
    2221
    2322var startsWithDollarDigit = regexTester(/^\$[0-9]/);
     
    4342        }
    4443
    45         if (typeof namedCaptures !== 'undefined' && Type(namedCaptures) !== 'Object') {
     44        if (typeof namedCaptures !== 'undefined' && !isObject(namedCaptures)) {
    4645                throw new $TypeError('Assertion failed: `namedCaptures` must be `undefined` or an Object');
    4746        }
     
    114113                                ref = substring(templateRemainder, 0, gtPos + 1); // step 5.g.iii.1
    115114                                var groupName = substring(templateRemainder, 2, gtPos); // step 5.g.iii.2
    116                                 if (Type(namedCaptures) !== 'Object') {
     115                                if (!isObject(namedCaptures)) {
    117116                                        throw new $TypeError('Assertion failed: Type(namedCaptures) is not Object'); // step 5.g.iii.3
    118117                                }
Note: See TracChangeset for help on using the changeset viewer.