| Index: src/factory.cc
|
| diff --git a/src/factory.cc b/src/factory.cc
|
| index 7b915371616863782650b973e22d331f4c0806e6..c0bbb78e2abe979a2c6833b76e465f8ff5b7aef5 100644
|
| --- a/src/factory.cc
|
| +++ b/src/factory.cc
|
| @@ -938,7 +938,6 @@ Handle<DescriptorArray> Factory::CopyAppendCallbackDescriptors(
|
| // back to front so that the last callback with a given name takes
|
| // precedence over previously added callbacks with that name.
|
| int added_descriptor_count = descriptor_count;
|
| - int next_enum = array->NextEnumerationIndex();
|
| for (int i = nof_callbacks - 1; i >= 0; i--) {
|
| Handle<AccessorInfo> entry =
|
| Handle<AccessorInfo>(AccessorInfo::cast(callbacks.get(i)));
|
| @@ -948,11 +947,8 @@ Handle<DescriptorArray> Factory::CopyAppendCallbackDescriptors(
|
| // Check if a descriptor with this name already exists before writing.
|
| if (LinearSearch(*result, EXPECT_UNSORTED, *key, added_descriptor_count) ==
|
| DescriptorArray::kNotFound) {
|
| - CallbacksDescriptor desc(*key,
|
| - *entry,
|
| - entry->property_attributes(),
|
| - next_enum++);
|
| - result->Set(added_descriptor_count, &desc, witness);
|
| + CallbacksDescriptor desc(*key, *entry, entry->property_attributes(), 0);
|
| + result->Append(added_descriptor_count, &desc, witness);
|
| added_descriptor_count++;
|
| }
|
| }
|
| @@ -973,7 +969,6 @@ Handle<DescriptorArray> Factory::CopyAppendCallbackDescriptors(
|
|
|
| // Sort the result before returning.
|
| result->Sort(witness);
|
| - ASSERT(result->NextEnumerationIndex() == next_enum);
|
| return result;
|
| }
|
|
|
|
|