()
| 871 | } |
| 872 | |
| 873 | function restoreBreakpoints() { |
| 874 | const lastBreakpoints = ArrayPrototypeSplice(knownBreakpoints, 0); |
| 875 | const newBreakpoints = ArrayPrototypeMap( |
| 876 | ArrayPrototypeFilter(lastBreakpoints, |
| 877 | ({ location }) => !!location.scriptUrl), |
| 878 | ({ location }) => setBreakpoint(location.scriptUrl, |
| 879 | location.lineNumber + 1)); |
| 880 | if (!newBreakpoints.length) return PromiseResolve(); |
| 881 | return PromisePrototypeThen( |
| 882 | SafePromiseAllReturnVoid(newBreakpoints), |
| 883 | () => { |
| 884 | print(`${newBreakpoints.length} breakpoints restored.`); |
| 885 | }); |
| 886 | } |
| 887 | |
| 888 | function setPauseOnExceptions(state) { |
| 889 | return PromisePrototypeThen( |
no test coverage detected
searching dependent graphs…