Files
codeql/javascript/ql/examples/snippets/varref.ql
2019-07-26 17:47:11 +02:00

13 lines
250 B
Plaintext

/**
* @name Reference to variable
* @description Finds places where we reference a variable called `undefined`
* @tags variable
* reference
*/
import javascript
from VarRef ref
where ref.getVariable().getName() = "undefined"
select ref