(silent = false)
| 1127 | } |
| 1128 | |
| 1129 | private _removeAllScripts(silent = false) { |
| 1130 | const scripts = Array.from(this._sourceContainer.scriptsById.values()); |
| 1131 | this._sourceContainer.scriptsById.clear(); |
| 1132 | this._scriptSources.clear(); |
| 1133 | Promise.all( |
| 1134 | scripts.map(script => |
| 1135 | script.source.then(source => { |
| 1136 | const set = this.scriptsFromSource(source); |
| 1137 | set.delete(script); |
| 1138 | if (!set.size) { |
| 1139 | this._sourceContainer.removeSource(source, silent); |
| 1140 | } |
| 1141 | }), |
| 1142 | ), |
| 1143 | ); |
| 1144 | } |
| 1145 | |
| 1146 | private _onScriptParsed(event: Cdp.Debugger.ScriptParsedEvent) { |
| 1147 | if (this._sourceContainer.scriptsById.has(event.scriptId)) { |
no test coverage detected