Web Inspector: Wrong column numbers in error object views
[WebKit-https.git] / Source / WebInspectorUI / UserInterface / Models / StackTrace.js
index af69e7b..d4c645b 100644 (file)
@@ -66,12 +66,12 @@ WebInspector.StackTrace = class StackTrace extends WebInspector.Object
 
                 var columnIndex = url.lastIndexOf(":");
                 if (columnIndex !== -1) {
-                    columnNumber = url.slice(columnIndex + 1);
+                    columnNumber = parseInt(url.slice(columnIndex + 1));
 
                     url = url.slice(0, columnIndex);
                     var lineIndex = url.lastIndexOf(":", columnIndex);
                     if (lineIndex !== -1) {
-                        lineNumber = url.slice(lineIndex + 1, columnIndex);
+                        lineNumber = parseInt(url.slice(lineIndex + 1, columnIndex));
                         url = url.slice(0, lineIndex);
                     }
                 }