Changeset 246667 in webkit
- Timestamp:
- Jun 20, 2019 6:21:08 PM (5 years ago)
- Location:
- trunk/Source/WebInspectorUI
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebInspectorUI/ChangeLog
r246666 r246667 1 2019-06-20 Devin Rousso <drousso@apple.com> 2 3 Web Inspector: Error "null is not an object (evaluating 'syntaxTree.containersOfPosition')" when setting a breakpoint 4 https://bugs.webkit.org/show_bug.cgi?id=199082 5 6 Reviewed by Matt Baker. 7 8 * UserInterface/Views/SourceCodeTextEditor.js: 9 (WI.SourceCodeTextEditor.prototype.textEditorExecutionHighlightRange): 10 The script syntax tree may be fetched even if the resource hasn't finished parsing (or had 11 a syntax error), so it's possible for it to be `null`. 12 1 13 2019-06-20 Devin Rousso <drousso@apple.com> 2 14 -
trunk/Source/WebInspectorUI/UserInterface/Views/SourceCodeTextEditor.js
r246659 r246667 1438 1438 1439 1439 script.requestScriptSyntaxTree((syntaxTree) => { 1440 // After requesting the tree, we still might get a null tree from a parse error. 1441 if (!syntaxTree) { 1442 callback(null); 1443 return; 1444 } 1445 1440 1446 // Convert to the position within the inline script before querying the AST. 1441 1447 position = toInlineScriptPosition(position);
Note: See TracChangeset
for help on using the changeset viewer.