({ breakpointId, location })
| 704 | } |
| 705 | |
| 706 | function handleBreakpointResolved({ breakpointId, location }) { |
| 707 | const script = knownScripts[location.scriptId]; |
| 708 | const scriptUrl = script?.url; |
| 709 | if (scriptUrl) { |
| 710 | ObjectAssign(location, { scriptUrl }); |
| 711 | } |
| 712 | const isExisting = ArrayPrototypeSome(knownBreakpoints, (bp) => { |
| 713 | if (bp.breakpointId === breakpointId) { |
| 714 | ObjectAssign(bp, { location }); |
| 715 | return true; |
| 716 | } |
| 717 | return false; |
| 718 | }); |
| 719 | if (!isExisting) { |
| 720 | ArrayPrototypePush(knownBreakpoints, { breakpointId, location }); |
| 721 | } |
| 722 | } |
| 723 | |
| 724 | function listBreakpoints() { |
| 725 | if (!knownBreakpoints.length) { |
no test coverage detected
searching dependent graphs…