We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
new
1 parent fc3f7dd commit 396ecf7Copy full SHA for 396ecf7
packages/core-js/internals/does-not-exceed-safe-integer.js
@@ -3,6 +3,6 @@ var $TypeError = TypeError;
3
var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
4
5
module.exports = function (it) {
6
- if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded');
+ if (it > MAX_SAFE_INTEGER) throw new $TypeError('Maximum allowed index exceeded');
7
return it;
8
};
0 commit comments