Index: test/cctest/test-declarative-accessors.cc |
diff --git a/test/cctest/test-declarative-accessors.cc b/test/cctest/test-declarative-accessors.cc |
index e3c7fa5f1199db85e1608ef6a2f6f6bd0440e43e..fa5a0452fdbb350f9035d3b2cd8c64f428bc0c9b 100644 |
--- a/test/cctest/test-declarative-accessors.cc |
+++ b/test/cctest/test-declarative-accessors.cc |
@@ -101,7 +101,7 @@ static v8::Local<v8::ObjectTemplate> CreateConstructor( |
// Setup object template. |
if (descriptor_name != NULL && !descriptor.IsEmpty()) { |
bool added_accessor = |
- obj_template->SetAccessor(v8_str(descriptor_name), descriptor); |
+ obj_template->SetDeclaredAccessor(v8_str(descriptor_name), descriptor); |
CHECK(added_accessor); |
} |
obj_template->SetInternalFieldCount((internal_field+1)*2 + 7); |
@@ -124,9 +124,9 @@ static void VerifyRead(v8::Handle<v8::DeclaredAccessorDescriptor> descriptor, |
context->Global()->Get(v8_str("accessible"))); |
obj->SetAlignedPointerInInternalField(internal_field, internal_object); |
bool added_accessor; |
- added_accessor = obj->SetAccessor(v8_str("y"), descriptor); |
+ added_accessor = obj->SetDeclaredAccessor(v8_str("y"), descriptor); |
CHECK(added_accessor); |
- added_accessor = obj->SetAccessor(v8_str("13"), descriptor); |
+ added_accessor = obj->SetDeclaredAccessor(v8_str("13"), descriptor); |
CHECK(added_accessor); |
// Test access from template getter. |
v8::Local<v8::Value> value; |