(object: Cdp.Runtime.RemoteObject)
| 1280 | } |
| 1281 | |
| 1282 | async _revealObject(object: Cdp.Runtime.RemoteObject) { |
| 1283 | if (object.type !== 'function' || object.objectId === undefined) return; |
| 1284 | const response = await this._cdp.Runtime.getProperties({ |
| 1285 | objectId: object.objectId, |
| 1286 | ownProperties: true, |
| 1287 | }); |
| 1288 | if (!response) return; |
| 1289 | for (const p of response.internalProperties || []) { |
| 1290 | if ( |
| 1291 | p.name !== '[[FunctionLocation]]' || |
| 1292 | !p.value || |
| 1293 | (p.value.subtype as string) !== 'internal#location' |
| 1294 | ) |
| 1295 | continue; |
| 1296 | const uiLocation = await this.rawLocationToUiLocation( |
| 1297 | this.rawLocation(p.value.value as Cdp.Debugger.Location), |
| 1298 | ); |
| 1299 | if (uiLocation) this._sourceContainer.revealUiLocation(uiLocation); |
| 1300 | break; |
| 1301 | } |
| 1302 | } |
| 1303 | |
| 1304 | async _copyObjectToClipboard(object: Cdp.Runtime.RemoteObject) { |
| 1305 | if (!object.objectId) { |
no test coverage detected