Commit 5718547a authored by erik.corry@gmail.com's avatar erik.corry@gmail.com

Fix probably harmless thinko in StringCharAt (causes

slow-case code to be run).
Review URL: http://codereview.chromium.org/43005

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@1470 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 860508f3
...@@ -62,7 +62,7 @@ function StringValueOf() { ...@@ -62,7 +62,7 @@ function StringValueOf() {
// ECMA-262, section 15.5.4.4 // ECMA-262, section 15.5.4.4
function StringCharAt(pos) { function StringCharAt(pos) {
var char_code = %_FastCharCodeAt(subject, index); var char_code = %_FastCharCodeAt(this, index);
if (!%_IsSmi(char_code)) { if (!%_IsSmi(char_code)) {
var subject = ToString(this); var subject = ToString(this);
var index = TO_INTEGER(pos); var index = TO_INTEGER(pos);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment