From 823f9feb05240d87b1b21c128a2b133dde40163a Mon Sep 17 00:00:00 2001 From: "ager@chromium.org" Date: Tue, 22 Feb 2011 09:14:47 +0000 Subject: [PATCH] Revert "Expand fast case of parseInt to include radix == 10 and radix == 0." Causes Mozilla failures. TBR=sandholm@chromium.org Review URL: http://codereview.chromium.org/6542056 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@6880 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/v8natives.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/v8natives.js b/src/v8natives.js index cb85dd4..884b6f4 100644 --- a/src/v8natives.js +++ b/src/v8natives.js @@ -92,7 +92,7 @@ function GlobalIsFinite(number) { // ECMA-262 - 15.1.2.2 function GlobalParseInt(string, radix) { - if (IS_UNDEFINED(radix) || radix === 10 || radix === 0) { + if (IS_UNDEFINED(radix)) { // Some people use parseInt instead of Math.floor. This // optimization makes parseInt on a Smi 12 times faster (60ns // vs 800ns). The following optimization makes parseInt on a -- 2.7.4