Title: [208260] trunk/Source/WebInspectorUI
- Revision
- 208260
- Author
- commit-qu...@webkit.org
- Date
- 2016-11-01 16:39:11 -0700 (Tue, 01 Nov 2016)
Log Message
Web Inspector: Improve debugger highlight in some exception cases
https://bugs.webkit.org/show_bug.cgi?id=164300
Patch by Joseph Pecoraro <pecor...@apple.com> on 2016-11-01
Reviewed by Matt Baker.
* UserInterface/Views/SourceCodeTextEditor.js:
(WebInspector.SourceCodeTextEditor.prototype.textEditorExecutionHighlightRange):
When walking up AST nodes and reach a throw statement, use that.
Modified Paths
Diff
Modified: trunk/Source/WebInspectorUI/ChangeLog (208259 => 208260)
--- trunk/Source/WebInspectorUI/ChangeLog 2016-11-01 23:37:04 UTC (rev 208259)
+++ trunk/Source/WebInspectorUI/ChangeLog 2016-11-01 23:39:11 UTC (rev 208260)
@@ -1,5 +1,16 @@
2016-11-01 Joseph Pecoraro <pecor...@apple.com>
+ Web Inspector: Improve debugger highlight in some exception cases
+ https://bugs.webkit.org/show_bug.cgi?id=164300
+
+ Reviewed by Matt Baker.
+
+ * UserInterface/Views/SourceCodeTextEditor.js:
+ (WebInspector.SourceCodeTextEditor.prototype.textEditorExecutionHighlightRange):
+ When walking up AST nodes and reach a throw statement, use that.
+
+2016-11-01 Joseph Pecoraro <pecor...@apple.com>
+
Web Inspector: Cleanup stale code in NetworkSidebarPanel
https://bugs.webkit.org/show_bug.cgi?id=164295
Modified: trunk/Source/WebInspectorUI/UserInterface/Views/SourceCodeTextEditor.js (208259 => 208260)
--- trunk/Source/WebInspectorUI/UserInterface/Views/SourceCodeTextEditor.js 2016-11-01 23:37:04 UTC (rev 208259)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/SourceCodeTextEditor.js 2016-11-01 23:39:11 UTC (rev 208260)
@@ -1291,7 +1291,8 @@
// In a function call.
if (node.type === WebInspector.ScriptSyntaxTree.NodeType.CallExpression
- || node.type === WebInspector.ScriptSyntaxTree.NodeType.NewExpression) {
+ || node.type === WebInspector.ScriptSyntaxTree.NodeType.NewExpression
+ || node.type === WebInspector.ScriptSyntaxTree.NodeType.ThrowStatement) {
callback(convertRangeOffsetsToSourceCodeOffsets(node.range));
return;
}
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes