We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
getStringValue
1 parent ac89559 commit 8d1b080Copy full SHA for 8d1b080
1 file changed
javascript/ql/src/semmle/javascript/Expr.qll
@@ -1519,7 +1519,8 @@ class AddExpr extends @addexpr, BinaryExpr {
1519
override string getOperator() { result = "+" }
1520
1521
override string getStringValue() {
1522
- result = getLeftOperand().getStringValue() + getRightOperand().getStringValue()
+ result = getLeftOperand().getStringValue() + getRightOperand().getStringValue() and
1523
+ result.length() < 1000 * 1000
1524
}
1525
1526
0 commit comments