Index: test/cctest/profiler-extension.cc |
diff --git a/test/cctest/profiler-extension.cc b/test/cctest/profiler-extension.cc |
index 7b0b099fa751c49bfa1b0fba396d6ae43508f294..193b1ce24c3b561cc342e7ca49563e2d89a24c7c 100644 |
--- a/test/cctest/profiler-extension.cc |
+++ b/test/cctest/profiler-extension.cc |
@@ -39,9 +39,11 @@ const char* ProfilerExtension::kSource = |
v8::Handle<v8::FunctionTemplate> ProfilerExtension::GetNativeFunctionTemplate( |
v8::Isolate* isolate, v8::Handle<v8::String> name) { |
if (name->Equals(v8::String::NewFromUtf8(isolate, "startProfiling"))) { |
- return v8::FunctionTemplate::New(ProfilerExtension::StartProfiling); |
+ return v8::FunctionTemplate::New(isolate, |
+ ProfilerExtension::StartProfiling); |
} else if (name->Equals(v8::String::NewFromUtf8(isolate, "stopProfiling"))) { |
- return v8::FunctionTemplate::New(ProfilerExtension::StopProfiling); |
+ return v8::FunctionTemplate::New(isolate, |
+ ProfilerExtension::StopProfiling); |
} else { |
CHECK(false); |
return v8::Handle<v8::FunctionTemplate>(); |