Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca9b892 commit 2d864aaCopy full SHA for 2d864aa
2 files changed
javascript/ql/test/library-tests/RangeAnalysis/DeadBranch.expected
@@ -0,0 +1 @@
1
+| constants.js:12:27:12:31 | // OK | Error: analysis claims x >= 1_000 is always false |
javascript/ql/test/library-tests/RangeAnalysis/constants.js
@@ -6,3 +6,8 @@ function f() {
6
if (two > one) {} // NOT OK - always true
7
if (two <= one) {} // NOT OK - always false
8
}
9
+
10
+function underscores(x) {
11
+ if (x >= 1_000_000) return; // OK
12
+ if (x >= 1_000) return; // OK
13
+}
0 commit comments