We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 376245d commit 7c7cd7cCopy full SHA for 7c7cd7c
1 file changed
javascript/ql/src/semmle/javascript/Constants.qll
@@ -127,10 +127,7 @@ module SyntacticConstants {
127
class WrappedConstant extends SyntacticConstant {
128
129
WrappedConstant() {
130
- stripParens() instanceof SyntacticConstant or
131
- this.(SeqExpr).getLastOperand() instanceof SyntacticConstant or
132
- this.(TypeAssertion).getExpression() instanceof SyntacticConstant or
133
- this.(Assignment).getRhs() instanceof SyntacticConstant
+ getUnderlyingValue() instanceof SyntacticConstant
134
}
135
136
0 commit comments