diff options
Diffstat (limited to 'node_modules/babel-runtime/node_modules/core-js/modules/_parse-int.js')
-rw-r--r-- | node_modules/babel-runtime/node_modules/core-js/modules/_parse-int.js | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/node_modules/babel-runtime/node_modules/core-js/modules/_parse-int.js b/node_modules/babel-runtime/node_modules/core-js/modules/_parse-int.js deleted file mode 100644 index ddd7172a9..000000000 --- a/node_modules/babel-runtime/node_modules/core-js/modules/_parse-int.js +++ /dev/null @@ -1,9 +0,0 @@ -var $parseInt = require('./_global').parseInt; -var $trim = require('./_string-trim').trim; -var ws = require('./_string-ws'); -var hex = /^[-+]?0[xX]/; - -module.exports = $parseInt(ws + '08') !== 8 || $parseInt(ws + '0x16') !== 22 ? function parseInt(str, radix) { - var string = $trim(String(str), 3); - return $parseInt(string, (radix >>> 0) || (hex.test(string) ? 16 : 10)); -} : $parseInt; |