Reviewers: Mads Ager, Description: Fix runtime function StringCharAt where an argument was not checked.
[email protected] Please review this at http://codereview.chromium.org/523126 SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/ Affected files: M src/runtime.cc Index: src/runtime.cc =================================================================== --- src/runtime.cc (revision 3556) +++ src/runtime.cc (working copy) @@ -1408,7 +1408,10 @@ static Object* Runtime_StringCharAt(Arguments args) { NoHandleAllocation ha; ASSERT(args.length() == 2); - return CharFromCode(Runtime_StringCharCodeAt(args)); + + CONVERT_CHECKED(String, subject, args[0]); + Object* index = args[1]; + return CharFromCode(CharCodeAt(subject, index)); }
-- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev
