Index: test/cctest/test-declarative-accessors.cc |
diff --git a/test/cctest/test-declarative-accessors.cc b/test/cctest/test-declarative-accessors.cc |
index aefd59d2aadfe3887ec61c4dcf23e21365dc8323..5bc432eaaba08a686da878c764a9cd2600e16383 100644 |
--- a/test/cctest/test-declarative-accessors.cc |
+++ b/test/cctest/test-declarative-accessors.cc |
@@ -95,7 +95,8 @@ static v8::Local<v8::ObjectTemplate> CreateConstructor( |
const char* descriptor_name = NULL, |
v8::Handle<v8::DeclaredAccessorDescriptor> descriptor = |
v8::Handle<v8::DeclaredAccessorDescriptor>()) { |
- v8::Local<v8::FunctionTemplate> constructor = v8::FunctionTemplate::New(); |
+ v8::Local<v8::FunctionTemplate> constructor = |
+ v8::FunctionTemplate::New(context->GetIsolate()); |
v8::Local<v8::ObjectTemplate> obj_template = constructor->InstanceTemplate(); |
// Setup object template. |
if (descriptor_name != NULL && !descriptor.IsEmpty()) { |