()
| 226 | } |
| 227 | |
| 228 | reset() { |
| 229 | const pending = this._pending; |
| 230 | if (pending) { |
| 231 | ArrayPrototypeForEach(ObjectValues(pending), (handler) => { |
| 232 | handler({ |
| 233 | code: 'ERR_DEBUGGER_ERROR', |
| 234 | message: 'Debugger session ended', |
| 235 | }); |
| 236 | }); |
| 237 | } |
| 238 | if (this._http) { |
| 239 | this._http.destroy(); |
| 240 | } |
| 241 | if (this._socket) { |
| 242 | this._socket.destroy(); |
| 243 | } |
| 244 | this._http = null; |
| 245 | this._lastId = 0; |
| 246 | this._socket = null; |
| 247 | this._pending = {}; |
| 248 | this._unprocessed = new FastBuffer(); |
| 249 | } |
| 250 | |
| 251 | callMethod(method, params) { |
| 252 | return new Promise((resolve, reject) => { |
no test coverage detected