Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d4f2172

Browse files
committed
void exprs are also ok
1 parent c120cca commit d4f2172

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • javascript/ql/src/semmle/javascript

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,8 @@ class Expr extends @expr, ExprOrStmt, ExprOrType, AST::ValueNode {
191191
or
192192
this = ctx.(UnaryExpr).getOperand() and
193193
not ctx instanceof LogNotExpr and // !x is fine because of implicit conversion
194-
not ctx instanceof PlusExpr // +x is fine because of implicit conversion
194+
not ctx instanceof PlusExpr and // +x is fine because of implicit conversion
195+
not ctx instanceof VoidExpr // void x is fine because it explicitly is for capturing void things
195196
or
196197
this = ctx.(UpdateExpr).getOperand()
197198
or

0 commit comments

Comments
 (0)