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

Predicate DataFlow::globalObjectRef

Gets a data flow node corresponding to an access to the global object, including this expressions outside functions, references to global variables window and global, and uses of the global npm package.

Examples:

window
window.window
global
globalThis
this
self
require('global/window')

Import path

import javascript
SourceNode globalObjectRef()