Author: erik.co...@gmail.com
Date: Tue Mar 10 02:00:04 2009
New Revision: 1470

Modified:
    branches/bleeding_edge/src/string.js

Log:
Fix probably harmless thinko in StringCharAt (causes
slow-case code to be run).
Review URL: http://codereview.chromium.org/43005

Modified: branches/bleeding_edge/src/string.js
==============================================================================
--- branches/bleeding_edge/src/string.js        (original)
+++ branches/bleeding_edge/src/string.js        Tue Mar 10 02:00:04 2009
@@ -62,7 +62,7 @@

  // ECMA-262, section 15.5.4.4
  function StringCharAt(pos) {
-  var char_code = %_FastCharCodeAt(subject, index);
+  var char_code = %_FastCharCodeAt(this, index);
    if (!%_IsSmi(char_code)) {
      var subject = ToString(this);
      var index = TO_INTEGER(pos);

--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
v8-dev@googlegroups.com
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to