Skip to content

Commit f43a189

Browse files
committed
JS: Make CaptureNode.toString() more explicit
1 parent 536c115 commit f43a189

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascript/ql/lib/semmle/javascript/dataflow/internal/DataFlowPrivate.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class CaptureNode extends DataFlow::Node, TSynthCaptureNode {
5555
override StmtContainer getContainer() { result = this.getNode().getEnclosingCallable() }
5656

5757
cached
58-
private string toStringInternal() { result = this.getNode().toString() }
58+
private string toStringInternal() { result = this.getNode().toString() + " [capture node]" }
5959

6060
override string toString() { result = this.toStringInternal() } // cached in parent class
6161

0 commit comments

Comments
 (0)