Index: src/conversions-inl.h |
diff --git a/src/conversions-inl.h b/src/conversions-inl.h |
index bf2232562e7946f2636d4ae8fcbcdda149a9551c..e272fe6c08d8dfa8f326a12ac0e84e7c81b4d1e1 100644 |
--- a/src/conversions-inl.h |
+++ b/src/conversions-inl.h |
@@ -268,6 +268,7 @@ double InternalStringToInt(UnicodeCache* unicode_cache, |
if (radix == 0) { |
// Radix detection. |
+ radix = 10; |
if (*current == '0') { |
++current; |
if (current == end) return SignedZero(negative); |
@@ -276,11 +277,8 @@ double InternalStringToInt(UnicodeCache* unicode_cache, |
++current; |
if (current == end) return JunkStringValue(); |
} else { |
- radix = 8; |
leading_zero = true; |
} |
- } else { |
- radix = 10; |
} |
} else if (radix == 16) { |
if (*current == '0') { |