Web Inspector: Logging a native function to the console, such as `alert`, produces...
[WebKit-https.git] / Source / WebInspectorUI / UserInterface / Views / ConsoleMessageView.js
index de6ec24..4cf58fd 100644 (file)
@@ -354,7 +354,7 @@ WI.ConsoleMessageView = class ConsoleMessageView extends WI.Object
         if (this._message.parameters && this._message.parameters.length === 1) {
             var parameter = this._createRemoteObjectIfNeeded(this._message.parameters[0]);
 
-            parameter.findFunctionSourceCodeLocation().then(function(result) {
+            parameter.findFunctionSourceCodeLocation().then((result) => {
                 if (result === WI.RemoteObject.SourceCodeLocationPromise.NoSourceFound || result === WI.RemoteObject.SourceCodeLocationPromise.MissingObjectId)
                     return;
 
@@ -365,7 +365,7 @@ WI.ConsoleMessageView = class ConsoleMessageView extends WI.Object
                     this._element.insertBefore(link, this._element.firstChild);
                 else
                     this._element.appendChild(link);
-            }.bind(this));
+            });
         }
     }