| OLD | NEW |
| 1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 print('Checks Debugger.getPossibleBreakpoints with ignoreNestedFunctions'); | 5 InspectorTest.log('Checks Debugger.getPossibleBreakpoints with ignoreNestedFunct
ions'); |
| 6 | 6 |
| 7 var source = ` | 7 var source = ` |
| 8 function test() { | 8 function test() { |
| 9 Array.from([1,2]).map(() => 1).filter(() => true); | 9 Array.from([1,2]).map(() => 1).filter(() => true); |
| 10 function nested1() { | 10 function nested1() { |
| 11 Array.from([1,2]).map(() => 1).filter(() => true); | 11 Array.from([1,2]).map(() => 1).filter(() => true); |
| 12 } | 12 } |
| 13 function nested2() { | 13 function nested2() { |
| 14 Array.from([1,2]).map(() => 1).filter(() => true); | 14 Array.from([1,2]).map(() => 1).filter(() => true); |
| 15 } | 15 } |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 var lineNumber = location.lineNumber | 111 var lineNumber = location.lineNumber |
| 112 var columnNumber = location.columnNumber; | 112 var columnNumber = location.columnNumber; |
| 113 | 113 |
| 114 var line = sourceLines[lineNumber]; | 114 var line = sourceLines[lineNumber]; |
| 115 line = line.slice(0, columnNumber) + '^' + line.slice(columnNumber); | 115 line = line.slice(0, columnNumber) + '^' + line.slice(columnNumber); |
| 116 sourceLines[lineNumber] = line; | 116 sourceLines[lineNumber] = line; |
| 117 InspectorTest.log(sourceLines.join('\n')); | 117 InspectorTest.log(sourceLines.join('\n')); |
| 118 InspectorTest.log(''); | 118 InspectorTest.log(''); |
| 119 Protocol.Debugger.resume(); | 119 Protocol.Debugger.resume(); |
| 120 } | 120 } |
| OLD | NEW |