Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(170)

Unified Diff: src/runtime.cc

Issue 230693002: Fix argument expectation Runtime_StringParseInt. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-parseint.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/runtime.cc
diff --git a/src/runtime.cc b/src/runtime.cc
index e46fbba6474552121c7c2bcb105924276515658e..02024c1095be9237205d3dd7b003d0e0a22475c0 100644
--- a/src/runtime.cc
+++ b/src/runtime.cc
@@ -6307,7 +6307,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_StringParseInt) {
SealHandleScope shs(isolate);
CONVERT_ARG_CHECKED(String, s, 0);
- CONVERT_SMI_ARG_CHECKED(radix, 1);
+ CONVERT_NUMBER_CHECKED(int, radix, Int32, args[1]);
s->TryFlatten();
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-parseint.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698