Make StringCharCodeAt runtime function do what it name implies and not
authorvitalyr@chromium.org <vitalyr@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 3 Jun 2010 09:32:07 +0000 (09:32 +0000)
committervitalyr@chromium.org <vitalyr@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 3 Jun 2010 09:32:07 +0000 (09:32 +0000)
commit3ec0b86495b17bb52f936afd18d8f02df24478f2
tree0a8bddd282478b299a52c543c5d877b181b4e61c
parentebc21fc9586f18d4294faaa4770b1a5ebcce6aca
Make StringCharCodeAt runtime function do what it name implies and not
just indexed string access.

The difference is that String.prototype.charCodeAt accepts any number
as an index, whereas string[] only accepts array indices.

Review URL: http://codereview.chromium.org/2467006

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@4790 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/runtime.cc
src/runtime.h
test/mjsunit/string-charat.js
test/mjsunit/string-charcodeat.js