qtil
advanced-security/qtil-javascript 0.0.3
Search

Predicate 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 semmle.javascript.dataflow.Nodes
SourceNode globalVarRef(string name)