| Index: src/runtime.cc
|
| ===================================================================
|
| --- src/runtime.cc (revision 4554)
|
| +++ src/runtime.cc (working copy)
|
| @@ -4118,7 +4118,7 @@
|
| int length = LocalPrototypeChainLength(*obj);
|
|
|
| // Find the number of local properties for each of the objects.
|
| - int* local_property_count = NewArray<int>(length);
|
| + ScopedVector<int> local_property_count(length);
|
| int total_property_count = 0;
|
| Handle<JSObject> jsproto = obj;
|
| for (int i = 0; i < length; i++) {
|
| @@ -4171,7 +4171,6 @@
|
| }
|
| }
|
|
|
| - DeleteArray(local_property_count);
|
| return *Factory::NewJSArrayWithElements(names);
|
| }
|
|
|
|
|