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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sources/JavaScriptCompiler.js

Issue 2752403002: [DevTools] Migrate usages of Target to RuntimeModel where makes sense (Closed)
Patch Set: review comments addressed Created 3 years, 9 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/devtools/front_end/sources/JavaScriptCompiler.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sources/JavaScriptCompiler.js b/third_party/WebKit/Source/devtools/front_end/sources/JavaScriptCompiler.js
index f651ae98a02c8d62c7d3292dcc6846b536a5930c..cd14a9678d6c7918bd32f70d93c31532ec932959 100644
--- a/third_party/WebKit/Source/devtools/front_end/sources/JavaScriptCompiler.js
+++ b/third_party/WebKit/Source/devtools/front_end/sources/JavaScriptCompiler.js
@@ -32,7 +32,7 @@ Sources.JavaScriptCompiler = class {
for (var i = 0; i < debuggerModels.length; ++i) {
var scriptFile = Bindings.debuggerWorkspaceBinding.scriptFile(sourceCode, debuggerModels[i]);
if (scriptFile)
- return debuggerModels[i].target().runtimeModel;
+ return debuggerModels[i].runtimeModel();
}
return SDK.targetManager.mainTarget() ? SDK.targetManager.mainTarget().runtimeModel : null;
}

Powered by Google App Engine
This is Rietveld 408576698