core-js-pure
Advanced tools
Comparing version 3.32.1 to 3.32.2
@@ -25,3 +25,5 @@ 'use strict'; | ||
module.exports = function (exec, SKIP_CLOSING) { | ||
if (!SKIP_CLOSING && !SAFE_CLOSING) return false; | ||
try { | ||
if (!SKIP_CLOSING && !SAFE_CLOSING) return false; | ||
} catch (error) { return false; } // workaround of old WebKit + `eval` bug | ||
var ITERATION_SUPPORT = false; | ||
@@ -28,0 +30,0 @@ try { |
@@ -57,3 +57,3 @@ 'use strict'; | ||
mantissa = roundToEven((number * c - 1) * pow(2, mantissaLength)); | ||
exponent = exponent + eBias; | ||
exponent += eBias; | ||
} else { | ||
@@ -107,4 +107,4 @@ mantissa = roundToEven(number * pow(2, eBias - 1) * pow(2, mantissaLength)); | ||
} else { | ||
mantissa = mantissa + pow(2, mantissaLength); | ||
exponent = exponent - eBias; | ||
mantissa += pow(2, mantissaLength); | ||
exponent -= eBias; | ||
} return (s ? -1 : 1) * mantissa * pow(2, exponent - mantissaLength); | ||
@@ -111,0 +111,0 @@ }; |
@@ -33,3 +33,4 @@ 'use strict'; | ||
if (KIND === DEFAULT && defaultIterator) return defaultIterator; | ||
if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) return IterablePrototype[KIND]; | ||
if (!BUGGY_SAFARI_ITERATORS && KIND && KIND in IterablePrototype) return IterablePrototype[KIND]; | ||
switch (KIND) { | ||
@@ -39,3 +40,5 @@ case KEYS: return function keys() { return new IteratorConstructor(this, KIND); }; | ||
case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); }; | ||
} return function () { return new IteratorConstructor(this); }; | ||
} | ||
return function () { return new IteratorConstructor(this); }; | ||
}; | ||
@@ -42,0 +45,0 @@ |
@@ -10,2 +10,3 @@ 'use strict'; | ||
// Old FF bug | ||
// eslint-disable-next-line no-loss-of-precision -- required for old engines | ||
|| $expm1(10) > 22025.465794806719 || $expm1(10) < 22025.4657948067165168 | ||
@@ -12,0 +13,0 @@ // Tor Browser bug |
@@ -8,7 +8,7 @@ 'use strict'; | ||
})('versions', []).push({ | ||
version: '3.32.1', | ||
version: '3.32.2', | ||
mode: IS_PURE ? 'pure' : 'global', | ||
copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)', | ||
license: 'https://github.com/zloirock/core-js/blob/v3.32.1/LICENSE', | ||
license: 'https://github.com/zloirock/core-js/blob/v3.32.2/LICENSE', | ||
source: 'https://github.com/zloirock/core-js' | ||
}); |
@@ -150,3 +150,3 @@ 'use strict'; | ||
while (true) { | ||
var t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias); | ||
var t = k <= bias ? tMin : k >= bias + tMax ? tMax : k - bias; | ||
if (q < t) break; | ||
@@ -153,0 +153,0 @@ var qMinusT = q - t; |
@@ -50,5 +50,16 @@ 'use strict'; | ||
switch (charCodeAt(it, 1)) { | ||
case 66: case 98: radix = 2; maxCode = 49; break; // fast equal of /^0b[01]+$/i | ||
case 79: case 111: radix = 8; maxCode = 55; break; // fast equal of /^0o[0-7]+$/i | ||
default: return +it; | ||
// fast equal of /^0b[01]+$/i | ||
case 66: | ||
case 98: | ||
radix = 2; | ||
maxCode = 49; | ||
break; | ||
// fast equal of /^0o[0-7]+$/i | ||
case 79: | ||
case 111: | ||
radix = 8; | ||
maxCode = 55; | ||
break; | ||
default: | ||
return +it; | ||
} | ||
@@ -55,0 +66,0 @@ digits = stringSlice(it, 2); |
@@ -33,3 +33,3 @@ 'use strict'; | ||
var IS_NON_ZERO_DIGIT = /^[1-9]$/; | ||
var IS_NUMBER_START = /^(-|\d)$/; | ||
var IS_NUMBER_START = /^(?:-|\d)$/; | ||
var IS_WHITESPACE = /^[\t\n\r ]$/; | ||
@@ -36,0 +36,0 @@ |
@@ -65,3 +65,3 @@ 'use strict'; | ||
var number = structuredCloneImplementation(Object(7)); | ||
return set2 === set1 || !set2.has(7) || typeof number != 'object' || number !== 7; | ||
return set2 === set1 || !set2.has(7) || typeof number != 'object' || +number !== 7; | ||
}) && structuredCloneImplementation; | ||
@@ -68,0 +68,0 @@ }; |
{ | ||
"name": "core-js-pure", | ||
"version": "3.32.1", | ||
"version": "3.32.2", | ||
"description": "Standard library", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
'use strict'; | ||
/* eslint-disable node/no-sync -- avoiding overcomplicating */ | ||
var fs = require('fs'); | ||
@@ -3,0 +4,0 @@ var os = require('os'); |
1058786
26828