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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/WorkerOrWorkletScriptController.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/WorkerOrWorkletScriptController.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/WorkerOrWorkletScriptController.cpp b/third_party/WebKit/Source/bindings/core/v8/WorkerOrWorkletScriptController.cpp
index 8b0fcaa438687a22d2b3e6d407673ac3a96b142d..93621566146f9ad20db52cca1e14be41fa5af5ad 100644
--- a/third_party/WebKit/Source/bindings/core/v8/WorkerOrWorkletScriptController.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/WorkerOrWorkletScriptController.cpp
@@ -266,8 +266,9 @@ ScriptValue WorkerOrWorkletScriptController::Evaluate(
v8::Local<v8::Script> compiled_script;
v8::MaybeLocal<v8::Value> maybe_result;
if (V8ScriptRunner::CompileScript(
- script, file_name, String(), script_start_position, isolate_,
- cache_handler, kSharableCrossOrigin, v8_cache_options)
+ ExecutionContext::From(script_state_.Get()), script, file_name,
+ String(), script_start_position, isolate_, cache_handler,
+ kSharableCrossOrigin, v8_cache_options)
.ToLocal(&compiled_script))
maybe_result = V8ScriptRunner::RunCompiledScript(isolate_, compiled_script,
global_scope_);

Powered by Google App Engine
This is Rietveld 408576698