Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/es-abstract/2024/GroupBy.js
r0c6b92a r79a0317 2 2 3 3 var $TypeError = require('es-errors/type'); 4 var isNegativeZero = require('math-intrinsics/isNegativeZero'); 5 var MAX_SAFE_INTEGER = require('math-intrinsics/constants/maxSafeInteger'); 4 6 5 7 var AddValueToKeyedGroup = require('./AddValueToKeyedGroup'); … … 13 15 var ThrowCompletion = require('./ThrowCompletion'); 14 16 var ToPropertyKey = require('./ToPropertyKey'); 15 16 var isNegativeZero = require('../helpers/isNegativeZero');17 var maxSafeInteger = require('../helpers/maxSafeInteger');18 17 19 18 // https://262.ecma-international.org/15.0/#sec-groupby … … 38 37 // eslint-disable-next-line no-constant-condition 39 38 while (true) { // step 6 40 if (k >= maxSafeInteger) { // step 6.a39 if (k >= MAX_SAFE_INTEGER) { // step 6.a 41 40 var error = ThrowCompletion(new $TypeError('k must be less than 2 ** 53 - 1')); // step 6.a.i 42 return IteratorClose(iteratorRecord, error); // step 6.a.ii 41 IteratorClose(iteratorRecord, error); // step 6.a.ii 42 return void undefined; 43 43 } 44 44 var next = IteratorStep(iteratorRecord); // step 6.b … … 53 53 key = Call(callbackfn, undefined, [value, k]); // step 6.e 54 54 } catch (e) { 55 return IteratorClose(iteratorRecord, ThrowCompletion(e)); // step 6.f 55 IteratorClose(iteratorRecord, ThrowCompletion(e)); // step 6.f 56 return void undefined; 56 57 } 57 58 … … 60 61 key = ToPropertyKey(key); // step 6.g.i 61 62 } catch (e) { 62 return IteratorClose(iteratorRecord, ThrowCompletion(e)); // step 6.g.ii 63 IteratorClose(iteratorRecord, ThrowCompletion(e)); // step 6.g.ii 64 return void undefined; 63 65 } 64 66 } else { // step 6.h
Note:
See TracChangeset
for help on using the changeset viewer.