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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/DocumentWriteEvaluator.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/bindings/core/v8/DocumentWriteEvaluator.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/DocumentWriteEvaluator.cpp b/third_party/WebKit/Source/bindings/core/v8/DocumentWriteEvaluator.cpp
index 3465546bae78bd5871998ad523d66b8a256c4217..c2225217ee2a1a23d890b48f47eff1490b0034a5 100644
--- a/third_party/WebKit/Source/bindings/core/v8/DocumentWriteEvaluator.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/DocumentWriteEvaluator.cpp
@@ -142,8 +142,9 @@ bool DocumentWriteEvaluator::Evaluate(const String& script_source) {
if (source.IsEmpty())
return false;
v8::TryCatch try_catch(isolate);
- return !V8ScriptRunner::CompileAndRunInternalScript(source.ToLocalChecked(),
- isolate)
+ return !V8ScriptRunner::CompileAndRunInternalScript(
+ ExecutionContext::From(ScriptState::Current(isolate)),
+ source.ToLocalChecked(), isolate)
.IsEmpty();
}

Powered by Google App Engine
This is Rietveld 408576698