fix build error in debug mode, TBR=iposva
authorfeng@chromium.org <feng@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 28 Oct 2008 16:27:09 +0000 (16:27 +0000)
committerfeng@chromium.org <feng@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 28 Oct 2008 16:27:09 +0000 (16:27 +0000)
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@627 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

src/runtime.cc

index 7673314..aa3ef89 100644 (file)
@@ -4102,7 +4102,7 @@ static uint32_t IterateArrayAndPrototypeElements(Handle<JSArray> array,
   // The visitor can simply overwrite the old value by new value using
   // the same index.  This follows Array::concat semantics.
   while (!obj->IsNull()) {
-    objects.Add(obj);
+    objects.Add(Handle<JSObject>::cast(obj));
     obj = Handle<Object>(obj->GetPrototype());
   }