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()