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

Unified Diff: third_party/WebKit/Source/core/inspector/ThreadDebugger.cpp

Issue 2962353002: Add probe for V8.Complie (Closed)
Patch Set: correct executionContext usage Created 3 years, 5 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: third_party/WebKit/Source/core/inspector/ThreadDebugger.cpp
diff --git a/third_party/WebKit/Source/core/inspector/ThreadDebugger.cpp b/third_party/WebKit/Source/core/inspector/ThreadDebugger.cpp
index 86c22fe6038c819a1099cb3ec555eb0a7586bb6f..6e765e5dc846745d4c2cef4b25600e6eec0a000c 100644
--- a/third_party/WebKit/Source/core/inspector/ThreadDebugger.cpp
+++ b/third_party/WebKit/Source/core/inspector/ThreadDebugger.cpp
@@ -250,6 +250,7 @@ void ThreadDebugger::installAdditionalCommandLineAPI(
v8::Local<v8::Value> function_value;
bool success =
V8ScriptRunner::CompileAndRunInternalScript(
+ ExecutionContext::From(ScriptState::From(context)),
V8String(isolate_, "(function(e) { console.log(e.type, e); })"),
isolate_)
.ToLocal(&function_value) &&

Powered by Google App Engine
This is Rietveld 408576698