CodeQL library for JavaScript/TypeScript
codeql/javascript-all 2.2.1-dev (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)