Index: src/runtime.cc |
=================================================================== |
--- src/runtime.cc (revision 3247) |
+++ src/runtime.cc (working copy) |
@@ -3387,8 +3387,7 @@ |
NoHandleAllocation ha; |
CONVERT_CHECKED(String, s, args[0]); |
- CONVERT_DOUBLE_CHECKED(n, args[1]); |
- int radix = FastD2I(n); |
+ CONVERT_SMI_CHECKED(radix, args[1]); |
Erik Corry
2009/11/11 11:16:49
This version doesn't work if the argument is not a
Lasse Reichstein
2009/11/11 11:43:34
It's perfectly fine to throw an exception for a no
Erik Corry
2009/11/13 12:24:23
My apologies, I was too fast with this comment. T
|
s->TryFlattenIfNotFlat(); |