CodeQL library for JavaScript/TypeScript
codeql/javascript-all 0.8.12 (changelog, source)
Search

Predicate DataFlow::globalVarRef

Gets a data flow node corresponding to an access to global variable name, either directly, through window or global, or through the global npm package.

Examples:

document
Math
window.document
window.Math
require('global/document')

Import path

import javascript
SourceNode globalVarRef(string name)