Index: samples/lineprocessor.cc |
diff --git a/samples/lineprocessor.cc b/samples/lineprocessor.cc |
index 2ce31b47c00720c441a67115d60abbbe9f6d6ff8..45e5dc30d35a8107193d4f6df067d2417386f04b 100644 |
--- a/samples/lineprocessor.cc |
+++ b/samples/lineprocessor.cc |
@@ -130,7 +130,9 @@ void DispatchDebugMessages() { |
// think about. |
v8::Isolate* isolate = v8::Isolate::GetCurrent(); |
v8::HandleScope handle_scope(isolate); |
- v8::Context::Scope scope(isolate, debug_message_context); |
+ v8::Local<v8::Context> context = |
+ v8::Local<v8::Context>::New(isolate, debug_message_context); |
+ v8::Context::Scope scope(context); |
v8::Debug::ProcessDebugMessages(); |
} |