mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
JS: add test case
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
function f(arr) {
|
||||
if (arr.length > 2) {} // OK
|
||||
|
||||
let x = arr.length || 0;
|
||||
if (x > 2) {} // OK
|
||||
|
||||
let y = arr.length && 3;
|
||||
if (y > 2) {} // OK
|
||||
}
|
||||
Reference in New Issue
Block a user