Index: samples/lineprocessor.cc |
diff --git a/samples/lineprocessor.cc b/samples/lineprocessor.cc |
index 925e148a0cc1a67ed8fcc936dd65743dee4758a9..4823a48344327a53b7f60f47249b0f99c695d39a 100644 |
--- a/samples/lineprocessor.cc |
+++ b/samples/lineprocessor.cc |
@@ -204,12 +204,12 @@ int RunMain(int argc, char* argv[]) { |
// Bind the global 'print' function to the C++ Print callback. |
global->Set(v8::String::NewFromUtf8(isolate, "print"), |
- v8::FunctionTemplate::New(Print)); |
+ v8::FunctionTemplate::New(isolate, Print)); |
if (cycle_type == CycleInJs) { |
// Bind the global 'read_line' function to the C++ Print callback. |
global->Set(v8::String::NewFromUtf8(isolate, "read_line"), |
- v8::FunctionTemplate::New(ReadLine)); |
+ v8::FunctionTemplate::New(isolate, ReadLine)); |
} |
// Create a new execution environment containing the built-in |