mirror of
https://github.com/github/codeql.git
synced 2025-12-18 01:33:15 +01:00
add support for the debug library
This commit is contained in:
@@ -192,3 +192,12 @@ private module Fancylog {
|
||||
override DataFlow::Node getAMessageComponent() { result = getAnArgument() }
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* A class modelling [debug](https://npmjs.org/package/debug) as a logging mechanism.
|
||||
*/
|
||||
private class DebugLoggerCall extends LoggerCall, API::CallNode {
|
||||
DebugLoggerCall() { this = API::moduleImport("debug").getReturn().getACall() }
|
||||
|
||||
override DataFlow::Node getAMessageComponent() { result = getAnArgument() }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user