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

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

Issue 1726903002: Rename WorkerOrWorkletGlobalScope::script() to scriptController() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 10 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/ToV8.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/ToV8.cpp b/third_party/WebKit/Source/bindings/core/v8/ToV8.cpp
index 1b49308f063d5a463169d5c2adb6aaa3ee36d697..237003b0b32239d355f37122fb3421c06ed17d04 100644
--- a/third_party/WebKit/Source/bindings/core/v8/ToV8.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/ToV8.cpp
@@ -51,11 +51,11 @@ v8::Local<v8::Value> toV8(WorkerOrWorkletGlobalScope* impl, v8::Local<v8::Object
if (UNLIKELY(!impl))
return v8::Null(isolate);
- WorkerOrWorkletScriptController* script = impl->script();
- if (!script)
+ WorkerOrWorkletScriptController* scriptController = impl->scriptController();
+ if (!scriptController)
return v8::Null(isolate);
- v8::Local<v8::Object> global = script->context()->Global();
+ v8::Local<v8::Object> global = scriptController->context()->Global();
ASSERT(!global.IsEmpty());
return global;
}

Powered by Google App Engine
This is Rietveld 408576698