Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/es-abstract/2022/GetSubstitution.js
r0c6b92a r79a0317 4 4 5 5 var regexTester = require('safe-regex-test'); 6 var every = require('../helpers/every');7 8 6 var inspect = require('object-inspect'); 7 var isInteger = require('math-intrinsics/isInteger'); 9 8 10 9 var Get = require('./Get'); … … 15 14 var substring = require('./substring'); 16 15 var ToString = require('./ToString'); 17 var Type = require('./Type');18 16 19 var isInteger = require('../helpers/isInteger'); 17 var every = require('../helpers/every'); 18 var isObject = require('../helpers/isObject'); 19 var isPrefixOf = require('../helpers/isPrefixOf'); 20 20 var isStringOrUndefined = require('../helpers/isStringOrUndefined'); 21 var isPrefixOf = require('../helpers/isPrefixOf');22 21 23 22 var startsWithDollarDigit = regexTester(/^\$[0-9]/); … … 43 42 } 44 43 45 if (typeof namedCaptures !== 'undefined' && Type(namedCaptures) !== 'Object') {44 if (typeof namedCaptures !== 'undefined' && !isObject(namedCaptures)) { 46 45 throw new $TypeError('Assertion failed: `namedCaptures` must be `undefined` or an Object'); 47 46 } … … 114 113 ref = substring(templateRemainder, 0, gtPos + 1); // step 5.g.iii.1 115 114 var groupName = substring(templateRemainder, 2, gtPos); // step 5.g.iii.2 116 if ( Type(namedCaptures) !== 'Object') {115 if (!isObject(namedCaptures)) { 117 116 throw new $TypeError('Assertion failed: Type(namedCaptures) is not Object'); // step 5.g.iii.3 118 117 }
Note:
See TracChangeset
for help on using the changeset viewer.