()
| 148 | } |
| 149 | |
| 150 | async attach(): Promise<Cdp.Api | undefined> { |
| 151 | this._serialize = this._serialize.then(async () => { |
| 152 | if (this._attached) return; |
| 153 | return this._doAttach(); |
| 154 | }); |
| 155 | return this._serialize; |
| 156 | } |
| 157 | |
| 158 | async _doAttach(): Promise<Cdp.Api | undefined> { |
| 159 | this._waitingForDebugger = false; |