diff --git a/src/runtime.cc b/src/runtime.cc index 7673314e2d..aa3ef89a6f 100644 --- a/src/runtime.cc +++ b/src/runtime.cc @@ -4102,7 +4102,7 @@ static uint32_t IterateArrayAndPrototypeElements(Handle 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::cast(obj)); obj = Handle(obj->GetPrototype()); }