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

Unified Diff: Source/bindings/v8/WorkerScriptController.cpp

Issue 306853002: Replace Context::Scope with ScriptState::Scope (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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
Index: Source/bindings/v8/WorkerScriptController.cpp
diff --git a/Source/bindings/v8/WorkerScriptController.cpp b/Source/bindings/v8/WorkerScriptController.cpp
index 6a07e3a1f7759a88d7a52e482a503997926fcc0a..d85efd63cc758e2cfb6e79b00017f9fe9ca1eff1 100644
--- a/Source/bindings/v8/WorkerScriptController.cpp
+++ b/Source/bindings/v8/WorkerScriptController.cpp
@@ -126,7 +126,7 @@ bool WorkerScriptController::initializeContextIfNeeded()
m_scriptState = ScriptState::create(context, m_world);
- v8::Context::Scope scope(context);
+ ScriptState::Scope scope(m_scriptState.get());
// Set DebugId for the new context.
context->SetEmbedderData(0, v8AtomicString(m_isolate, "worker"));

Powered by Google App Engine
This is Rietveld 408576698