mirror of
https://github.com/github/codeql.git
synced 2026-05-01 03:35:13 +02:00
more precise warning message for implicit string/number conversions
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
| tst.js:20:6:20:13 | 'string' | This expression will be implicitly converted from string to object. |
|
||||
| tst.js:26:13:26:53 | "Settin ... o '%s'" | This expression will be implicitly converted from string to number. |
|
||||
| tst.js:29:18:29:26 | !callback | This expression will be implicitly converted from boolean to object. |
|
||||
| tst.js:53:5:53:10 | void 0 | This expression will be implicitly converted from undefined to number or string. |
|
||||
| tst.js:53:5:53:10 | void 0 | This expression will be implicitly converted from undefined to number. |
|
||||
| tst.js:61:3:61:3 | x | This expression will be implicitly converted from undefined to number. |
|
||||
| tst.js:67:8:67:8 | y | This expression will be implicitly converted from undefined to number. |
|
||||
| tst.js:73:5:73:5 | x | This expression will be implicitly converted from undefined to number. |
|
||||
@@ -11,3 +11,5 @@
|
||||
| tst.js:85:3:85:3 | x | This expression will be implicitly converted from undefined to number. |
|
||||
| tst.js:100:5:100:7 | f() | This expression will be implicitly converted from undefined to number. |
|
||||
| tst.js:106:5:106:7 | g() | This expression will be implicitly converted from undefined to number. |
|
||||
| tst.js:109:13:109:15 | g() | This expression will be implicitly converted from undefined to number. |
|
||||
| tst.js:110:13:110:15 | g() | This expression will be implicitly converted from undefined to string. |
|
||||
|
||||
@@ -105,5 +105,8 @@ function l() {
|
||||
}
|
||||
g()|0;
|
||||
g();
|
||||
|
||||
var a = g() + 2;
|
||||
var b = g() + "str";
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user