Skip to content

Commit dbc25ca

Browse files
committed
cache Expr::getStringValue
1 parent f952293 commit dbc25ca

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
@@ -108,7 +108,7 @@ class Expr extends @expr, ExprOrStmt, ExprOrType, AST::ValueNode {
108108
int getIntValue() { none() }
109109

110110
/** Gets the constant string value this expression evaluates to, if any. */
111-
string getStringValue() { none() }
111+
cached string getStringValue() { none() }
112112

113113
/** Holds if this expression is impure, that is, its evaluation could have side effects. */
114114
predicate isImpure() { any() }

0 commit comments

Comments
 (0)