mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
14 lines
275 B
Plaintext
14 lines
275 B
Plaintext
/**
|
|
* @id js/examples/varref
|
|
* @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
|