Skip to content

Commit 7c7cd7c

Browse files
author
Esben Sparre Andreasen
committed
JS: make use of getUnderlyingValue
1 parent 376245d commit 7c7cd7c

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

javascript/ql/src/semmle/javascript/Constants.qll

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,7 @@ module SyntacticConstants {
127127
class WrappedConstant extends SyntacticConstant {
128128

129129
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
130+
getUnderlyingValue() instanceof SyntacticConstant
134131
}
135132

136133
}

0 commit comments

Comments
 (0)