Index: samples/lineprocessor.cc |
diff --git a/samples/lineprocessor.cc b/samples/lineprocessor.cc |
index 4fc28b7aabd45f274660912f19643971e63710f4..6549f4c260b803d89fc217853ac5775b799f5b75 100644 |
--- a/samples/lineprocessor.cc |
+++ b/samples/lineprocessor.cc |
@@ -212,9 +212,10 @@ int RunMain(int argc, char* argv[]) { |
v8::Context::Scope context_scope(context); |
#ifdef ENABLE_DEBUGGER_SUPPORT |
- debug_message_context = v8::Persistent<v8::Context>::New(context); |
+ debug_message_context = |
+ v8::Persistent<v8::Context>::New(context->GetIsolate(), context); |
- v8::Locker locker(v8::Isolate::GetCurrent()); |
+ v8::Locker locker(context->GetIsolate()); |
if (support_callback) { |
v8::Debug::SetDebugMessageDispatchHandler(DispatchDebugMessages, true); |