mirror of
https://github.com/github/codeql.git
synced 2026-05-05 13:45:19 +02:00
recognize an access to the arguments object as library-input
This commit is contained in:
committed by
erik-krogh
parent
7b1ef7473e
commit
d86b7f6c54
@@ -32,6 +32,7 @@
|
||||
| lib/lib.js:1:15:1:16 | a* | Strings with many repetitions of 'a' can start matching anywhere after the start of the preceeding a*b |
|
||||
| lib/lib.js:8:3:8:4 | f* | Strings with many repetitions of 'f' can start matching anywhere after the start of the preceeding f*g |
|
||||
| lib/lib.js:28:3:28:4 | f* | Strings with many repetitions of 'f' can start matching anywhere after the start of the preceeding f*g |
|
||||
| lib/lib.js:36:3:36:4 | f* | Strings with many repetitions of 'f' can start matching anywhere after the start of the preceeding f*g |
|
||||
| lib/moduleLib/moduleLib.js:2:3:2:4 | a* | Strings with many repetitions of 'a' can start matching anywhere after the start of the preceeding a*b |
|
||||
| lib/otherLib/js/src/index.js:2:3:2:4 | a* | Strings with many repetitions of 'a' can start matching anywhere after the start of the preceeding a*b |
|
||||
| lib/snapdragon.js:7:28:7:29 | a* | Strings starting with 'a' and with many repetitions of 'a' can start matching anywhere after the start of the preceeding aa*$ |
|
||||
|
||||
@@ -28,4 +28,12 @@ module.exports.safe = function (x) {
|
||||
/f*g/.test(y); // OK
|
||||
}
|
||||
|
||||
module.exports.useArguments = function () {
|
||||
usedWithArguments.apply(this, arguments);
|
||||
}
|
||||
|
||||
function usedWithArguments(name) {
|
||||
/f*g/.test(name); // NOT OK - bit not yet recognized [INCONSITENCY]
|
||||
}
|
||||
|
||||
module.exports.snapdragon = require("./snapdragon")
|
||||
Reference in New Issue
Block a user