Index: test/cctest/test-declarative-accessors.cc |
diff --git a/test/cctest/test-declarative-accessors.cc b/test/cctest/test-declarative-accessors.cc |
index a14c7fae201f84538b182b8cf69197700d827cf7..2d2f5cd23b2c318ea62a7f83a18e940dfb2a934e 100644 |
--- a/test/cctest/test-declarative-accessors.cc |
+++ b/test/cctest/test-declarative-accessors.cc |
@@ -120,8 +120,8 @@ static void VerifyRead(v8::Handle<v8::DeclaredAccessorDescriptor> descriptor, |
CreateConstructor(context, "Accessible", internal_field, "x", descriptor); |
// Setup object. |
CompileRun("var accessible = new Accessible();"); |
- v8::Local<v8::Object> obj( |
- v8::Object::Cast(*context->Global()->Get(v8_str("accessible")))); |
+ v8::Local<v8::Object> obj = v8::Local<v8::Object>::Cast( |
+ context->Global()->Get(v8_str("accessible"))); |
obj->SetAlignedPointerInInternalField(internal_field, internal_object); |
bool added_accessor; |
added_accessor = obj->SetAccessor(v8_str("y"), descriptor); |