Skip to content

Commit bbdeca3

Browse files
committed
use getUnderlyingValue() to find leafs of a string-concat
1 parent 226e066 commit bbdeca3

File tree

1 file changed

+1
-1
lines changed
  • javascript/ql/src/semmle/javascript

1 file changed

+1
-1
lines changed

javascript/ql/src/semmle/javascript/Expr.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1569,7 +1569,7 @@ private string getConcatenatedString(Expr add) {
15691569
* Gets an operand from `add`.
15701570
* Is specialized to `AddExpr` such that `getAnAddOperand*(add)` can be used to get a leaf from a string-concatenation transitively.
15711571
*/
1572-
private Expr getAnAddOperand(AddExpr add) { result = add.getAnOperand() }
1572+
private Expr getAnAddOperand(AddExpr add) { result = add.getAnOperand().getUnderlyingValue() }
15731573

15741574
/**
15751575
* A subtraction expression.

0 commit comments

Comments
 (0)