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

Unified Diff: Source/devtools/front_end/sources/ScriptFormatter.js

Issue 458753003: Revert of DevTools: Introduce module initializers (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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: Source/devtools/front_end/sources/ScriptFormatter.js
diff --git a/Source/devtools/front_end/sources/ScriptFormatter.js b/Source/devtools/front_end/sources/ScriptFormatter.js
index 13b0814a2c947a0ee229d27a3830737f25e1390f..b980bc67aa23bf12843fad5bc1784a8b6cfe8d70 100644
--- a/Source/devtools/front_end/sources/ScriptFormatter.js
+++ b/Source/devtools/front_end/sources/ScriptFormatter.js
@@ -124,7 +124,7 @@
get _worker()
{
if (!this._cachedWorker) {
- this._cachedWorker = Runtime.startWorker("script_formatter_worker");
+ this._cachedWorker = new Worker("script_formatter_worker/ScriptFormatterWorker.js");
this._cachedWorker.onmessage = /** @type {function(this:Worker)} */ (this._didFormatContent.bind(this));
}
return this._cachedWorker;
« no previous file with comments | « Source/devtools/front_end/sources/FilteredItemSelectionDialog.js ('k') | Source/devtools/front_end/sources/SourcesPanel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698