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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/V8ErrorHandler.cpp

Issue 2810743003: Move ScriptState::GetExecutionContext (Part 3) (Closed)
Patch Set: Rebase Created 3 years, 8 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/V8ErrorHandler.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8ErrorHandler.cpp b/third_party/WebKit/Source/bindings/core/v8/V8ErrorHandler.cpp
index 29c0332b260921c4d60c58ce839c3c3ce2036c42..7aaf2bb3aeab549b5d59863af1c9a39c59e12d2f 100644
--- a/third_party/WebKit/Source/bindings/core/v8/V8ErrorHandler.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/V8ErrorHandler.cpp
@@ -55,7 +55,7 @@ v8::Local<v8::Value> V8ErrorHandler::CallListenerFunction(
return v8::Null(GetIsolate());
v8::Local<v8::Object> listener =
- GetListenerObject(script_state->GetExecutionContext());
+ GetListenerObject(ExecutionContext::From(script_state));
if (listener.IsEmpty() || !listener->IsFunction())
return v8::Null(GetIsolate());
@@ -79,13 +79,13 @@ v8::Local<v8::Value> V8ErrorHandler::CallListenerFunction(
v8::TryCatch try_catch(GetIsolate());
try_catch.SetVerbose(true);
v8::MaybeLocal<v8::Value> result;
- if (script_state->GetExecutionContext()->IsWorkerGlobalScope()) {
+ if (ExecutionContext::From(script_state)->IsWorkerGlobalScope()) {
result = V8ScriptRunner::CallFunction(
- call_function, script_state->GetExecutionContext(), this_value,
+ call_function, ExecutionContext::From(script_state), this_value,
WTF_ARRAY_LENGTH(parameters), parameters, GetIsolate());
} else {
result = V8ScriptRunner::CallFunction(
- call_function, script_state->GetExecutionContext(), this_value,
+ call_function, ExecutionContext::From(script_state), this_value,
WTF_ARRAY_LENGTH(parameters), parameters, GetIsolate());
}
v8::Local<v8::Value> return_value;

Powered by Google App Engine
This is Rietveld 408576698