Remove old Chrome and Firefox fixes.

This commit is contained in:
John-David Dalton
2016-08-13 13:50:21 -07:00
parent a6a3f3ed80
commit 2b1bda7418
2 changed files with 4 additions and 22 deletions

View File

@@ -164,9 +164,6 @@
/** Used to match `RegExp` flags from their coerced string values. */
var reFlags = /\w*$/;
/** Used to detect hexadecimal string values. */
var reHasHexPrefix = /^0x/i;
/** Used to detect bad signed hexadecimal string values. */
var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
@@ -14071,15 +14068,12 @@
* // => [6, 8, 10]
*/
function parseInt(string, radix, guard) {
// Chrome fails to trim leading <BOM> whitespace characters.
// See https://bugs.chromium.org/p/v8/issues/detail?id=3109 for more details.
if (guard || radix == null) {
radix = 0;
} else if (radix) {
radix = +radix;
}
string = toString(string).replace(reTrim, '');
return nativeParseInt(string, radix || (reHasHexPrefix.test(string) ? 16 : 10));
return nativeParseInt(toString(string), radix || 0);
}
/**