File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed
javascript/ql/test/query-tests/Expressions/ExprHasNoEffect Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change
1
+ | dom.js:2:5:2:30 | a.clien ... ientTop | This expression has no effect. |
2
+ | dom.js:2:5:2:50 | a.clien ... === !0 | This expression has no effect. |
3
+ | dom.js:2:33:2:50 | a.clientTop === !0 | This expression has no effect. |
4
+ | dom.js:3:5:3:20 | a && a.clientTop | This expression has no effect. |
5
+ | dom.js:4:5:4:28 | a.clien ... ientTop | This expression has no effect. |
6
+ | dom.js:5:18:5:43 | a.clien ... ientTop | This expression has no effect. |
7
+ | dom.js:6:18:6:63 | b && (b ... entTop) | This expression has no effect. |
8
+ | dom.js:6:23:6:63 | (b.clie ... entTop) | This expression has no effect. |
1
9
| try.js:22:9:22:26 | x.ordinaryProperty | This expression has no effect. |
2
10
| tst2.js:2:4:2:4 | 0 | This expression has no effect. |
3
11
| tst.js:3:1:3:2 | 23 | This expression has no effect. |
Original file line number Diff line number Diff line change
1
+ function f ( ) {
2
+ a . clientTop && a . clientTop , a . clientTop === ! 0 ; // $Alert
3
+ a && a . clientTop ; // $SPURIOUS:Alert
4
+ a . clientTop , a . clientTop ; // $SPURIOUS:Alert
5
+ if ( a ) return a . clientTop && a . clientTop , a . clientTop === ! 0 // $SPURIOUS:Alert
6
+ if ( b ) return b && ( b . clientTop , b . clientTop && b . clientTop ) , null // $SPURIOUS:Alert
7
+ }
You can’t perform that action at this time.
0 commit comments