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 b980bc67aa23bf12843fad5bc1784a8b6cfe8d70..13b0814a2c947a0ee229d27a3830737f25e1390f 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 = new Worker("script_formatter_worker/ScriptFormatterWorker.js"); |
+ this._cachedWorker = Runtime.startWorker("script_formatter_worker"); |
this._cachedWorker.onmessage = /** @type {function(this:Worker)} */ (this._didFormatContent.bind(this)); |
} |
return this._cachedWorker; |