| Index: test/cctest/test-alloc.cc
|
| diff --git a/test/cctest/test-alloc.cc b/test/cctest/test-alloc.cc
|
| index e51ab26598315a7c29bf5796a656c991d1fc93c8..e9de25fa57e5098bd7f55ac518aa017c6343ed21 100644
|
| --- a/test/cctest/test-alloc.cc
|
| +++ b/test/cctest/test-alloc.cc
|
| @@ -158,15 +158,14 @@ TEST(StressJS) {
|
| Handle<DescriptorArray> new_descriptors = FACTORY->NewDescriptorArray(1);
|
|
|
| v8::internal::DescriptorArray::WhitenessWitness witness(*new_descriptors);
|
| + map->set_instance_descriptors(*new_descriptors);
|
|
|
| CallbacksDescriptor d(*name,
|
| *foreign,
|
| static_cast<PropertyAttributes>(0),
|
| v8::internal::PropertyDetails::kInitialIndex);
|
| - new_descriptors->Set(0, &d, witness);
|
| - new_descriptors->SetLastAdded(0);
|
| + map->AppendDescriptor(&d, witness);
|
|
|
| - map->set_instance_descriptors(*new_descriptors);
|
| // Add the Foo constructor the global object.
|
| env->Global()->Set(v8::String::New("Foo"), v8::Utils::ToLocal(function));
|
| // Call the accessor through JavaScript.
|
|
|