Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(519)

Unified Diff: samples/lineprocessor.cc

Issue 15837007: remove use of context scope with persistent argument (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « include/v8.h ('k') | samples/process.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
« no previous file with comments | « include/v8.h ('k') | samples/process.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698