Web Inspector: SourceCode.requestContent should return a promise
[WebKit-https.git] / Source / WebInspectorUI / UserInterface / Controllers / AnalyzerManager.js
index 9638bfff41647d6c327760045f1d9ce8bff0a162..08cf162c0f562798fdc8affc22a1279ffb0e1cbe 100644 (file)
@@ -87,7 +87,7 @@ WebInspector.AnalyzerManager.prototype = {
                 return;
             }
 
-            function retrieveAnalyzerMessages()
+            function retrieveAnalyzerMessages(properties)
             {
                 var analyzerMessages = [];
                 var rawAnalyzerMessages = analyzer.verify(sourceCode.content, this._eslintConfig);
@@ -101,7 +101,7 @@ WebInspector.AnalyzerManager.prototype = {
                 resolve(analyzerMessages);
             }
 
-            sourceCode.requestContent(retrieveAnalyzerMessages.bind(this));
+            sourceCode.requestContent().then(retrieveAnalyzerMessages.bind(this));
         }.bind(this));
     },