mirror of
https://github.com/github/codeql.git
synced 2026-05-01 11:45:14 +02:00
JS: use globalVarRef/SourceNode instead
This commit is contained in:
@@ -286,7 +286,7 @@ DataFlow::SourceNode globalObjectRef() {
|
||||
result = moduleImport("global")
|
||||
or
|
||||
// Closure library - based on AST to avoid recursion with Closure library model
|
||||
result.asExpr().(DotExpr).getQualifiedName() = "goog.global"
|
||||
result = globalVarRef("goog").getAPropertyRead("global")
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user