Reviewed by mjs.
authorggaren <ggaren@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 12 Jul 2005 18:20:02 +0000 (18:20 +0000)
committerggaren <ggaren@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 12 Jul 2005 18:20:02 +0000 (18:20 +0000)
        * kjs/function.cpp:
        (KJS::IndexToNameMap::operator[]): fixed infinite recursion
        bug in last checkin

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@9685 268f45cc-cd09-0410-ab3c-d52691b4dbfc

JavaScriptCore/ChangeLog
JavaScriptCore/kjs/function.cpp

index 8357ac0f45b3293b71de4036ceb3ebf30c2c4bae..edcde0189cee0be4a918326c60209d8865b8450e 100644 (file)
@@ -1,3 +1,11 @@
+2005-07-12  Geoffrey Garen  <ggaren@apple.com>
+
+        Reviewed by mjs.
+
+        * kjs/function.cpp:
+        (KJS::IndexToNameMap::operator[]): fixed infinite recursion
+        bug in last checkin
+
 2005-07-12  Geoffrey Garen  <ggaren@apple.com>
 
         -fixed http://bugzilla.opendarwin.org/show_bug.cgi?id=3881
index 65e8620c9edd55950979d74be56fe9f0f2659d77..db7675360a9d63571442c8c4c20a68287a8796d0 100644 (file)
@@ -407,7 +407,7 @@ Identifier& IndexToNameMap::operator[](const Identifier &index)
 
   assert(indexIsNumber && indexAsNumber < size);
   
-  return (*this)[index];
+  return (*this)[indexAsNumber];
 }
 
 // ------------------------------ ArgumentsImp ---------------------------------