File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -507,8 +507,9 @@ export class Inspector extends EventEmitter {
507507 this . buildNodeTree ( root ) ;
508508 }
509509
510- // for checking node tracked only
511- _getNodeByNodeId ( nodeId : number ) : Readonly < InspectorNode > | undefined {
510+ // mainly for checking node tracked
511+ // also useful for mapping manually requested NodeId to InspectorNode
512+ getNodeByNodeId ( nodeId : number ) : InspectorNode | undefined {
512513 const node = this . idToNode . get ( nodeId ) ;
513514 return node ;
514515 }
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ export class InspectorNode {
3636
3737 get tracked ( ) : boolean {
3838 // check if the node is still tracked by inspector
39- const node = this . inspector . _getNodeByNodeId ( this . _cdpNode . nodeId ) ;
39+ const node = this . inspector . getNodeByNodeId ( this . _cdpNode . nodeId ) ;
4040 return node === this ;
4141 }
4242
You can’t perform that action at this time.
0 commit comments