Skip to content

Commit 0a143a5

Browse files
committed
JS: Do not include type in path explanation
1 parent 1a532da commit 0a143a5

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ newtype TDataFlowType =
301301
TAnyType()
302302

303303
class DataFlowType extends TDataFlowType {
304-
string toString() {
304+
string toDebugString() {
305305
this instanceof TFunctionType and
306306
result =
307307
"TFunctionType(" + this.asFunction().toString() + ") at line " +
@@ -310,6 +310,10 @@ class DataFlowType extends TDataFlowType {
310310
this instanceof TAnyType and result = "TAnyType"
311311
}
312312

313+
string toString() {
314+
result = "" // Must be the empty string to prevent this from showing up in path explanations
315+
}
316+
313317
Function asFunction() { this = TFunctionType(result) }
314318
}
315319

0 commit comments

Comments
 (0)