Welcome to mirror list, hosted at ThFree Co, Russian Federation.

maxSafeInteger.js « helpers « es-abstract « node_modules - github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2fe8f38e1b8b8f34ace4005f6404ab3c883ba698 (plain)
1
2
3
4
5
6
7
8
'use strict';

var GetIntrinsic = require('../GetIntrinsic');

var $Math = GetIntrinsic('%Math%');
var $Number = GetIntrinsic('%Number%');

module.exports = $Number.MAX_SAFE_INTEGER || $Math.pow(2, 53) - 1;