mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
JS: Add failing test
This commit is contained in:
@@ -0,0 +1 @@
|
||||
| constants.js:12:27:12:31 | // OK | Error: analysis claims x >= 1_000 is always false |
|
||||
|
||||
@@ -6,3 +6,8 @@ function f() {
|
||||
if (two > one) {} // NOT OK - always true
|
||||
if (two <= one) {} // NOT OK - always false
|
||||
}
|
||||
|
||||
function underscores(x) {
|
||||
if (x >= 1_000_000) return; // OK
|
||||
if (x >= 1_000) return; // OK
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user