Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/es-iterator-helpers/aos/GetIteratorFlattenable.js
rd565449 r0c6b92a 12 12 var getIteratorMethod = require('es-abstract/helpers/getIteratorMethod'); 13 13 14 // https://tc39.es/proposal-iterator-helpers/#sec-getiteratorflattenable 15 14 16 module.exports = function GetIteratorFlattenable(obj, stringHandling) { 17 if (stringHandling !== 'REJECT-STRINGS' && stringHandling !== 'ITERATE-STRINGS') { 18 throw new $TypeError('Assertion failed: `stringHandling` must be "REJECT-STRINGS" or "ITERATE-STRINGS"'); 19 } 20 15 21 if (Type(obj) !== 'Object') { 16 if (stringHandling === ' reject-strings' || typeof obj !== 'string') {22 if (stringHandling === 'REJECT-STRINGS' || typeof obj !== 'string') { 17 23 throw new $TypeError('obj must be an Object'); // step 1.a 18 24 }
Note:
See TracChangeset
for help on using the changeset viewer.