Index: Source/devtools/front_end/sources/FilteredItemSelectionDialog.js |
diff --git a/Source/devtools/front_end/sources/FilteredItemSelectionDialog.js b/Source/devtools/front_end/sources/FilteredItemSelectionDialog.js |
index 4743506a9e01bb5ab68ff2d153d9280ff91b13a6..18bc362ea5c68e89cbec6bb2451a5d0017455257 100644 |
--- a/Source/devtools/front_end/sources/FilteredItemSelectionDialog.js |
+++ b/Source/devtools/front_end/sources/FilteredItemSelectionDialog.js |
@@ -531,7 +531,7 @@ WebInspector.JavaScriptOutlineDialog = function(uiSourceCode, selectItemCallback |
this._functionItems = []; |
this._selectItemCallback = selectItemCallback; |
- this._outlineWorker = Runtime.startWorker("script_formatter_worker"); |
+ this._outlineWorker = new WorkerRuntime.Worker("script_formatter_worker"); |
this._outlineWorker.onmessage = this._didBuildOutlineChunk.bind(this); |
this._outlineWorker.postMessage({ method: "javaScriptOutline", params: { content: uiSourceCode.workingCopy() } }); |
} |