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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/WorkerOrWorkletScriptController.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/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 589835b0c54bed9d649cefc146243f0908e3b9c9..c7f16c1518cc93afae61675e0cc31cf3f11180e2 100644
--- a/third_party/WebKit/Source/bindings/core/v8/WorkerOrWorkletScriptController.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/WorkerOrWorkletScriptController.cpp
@@ -42,6 +42,7 @@
#include "bindings/core/v8/V8ObjectConstructor.h"
#include "bindings/core/v8/V8ScriptRunner.h"
#include "bindings/core/v8/WrapperTypeInfo.h"
+#include "core/dom/ExecutionContext.h"
#include "core/events/ErrorEvent.h"
#include "core/inspector/InspectorTraceEvents.h"
#include "core/inspector/WorkerThreadDebugger.h"
@@ -273,7 +274,7 @@ ScriptValue WorkerOrWorkletScriptController::Evaluate(
execution_state_->had_exception = true;
execution_state_->error_message = ToCoreString(message->Get());
execution_state_->location_ = SourceLocation::FromMessage(
- isolate_, message, script_state_->GetExecutionContext());
+ isolate_, message, ExecutionContext::From(script_state_.Get()));
execution_state_->exception =
ScriptValue(script_state_.Get(), block.Exception());
block.Reset();

Powered by Google App Engine
This is Rietveld 408576698