mirror of
https://github.com/github/codeql.git
synced 2026-04-28 02:05:14 +02:00
Merge pull request #983 from asger-semmle/closure-global-ref
JS: add closure library in globalObjectRef
This commit is contained in:
@@ -284,6 +284,9 @@ DataFlow::SourceNode globalObjectRef() {
|
||||
or
|
||||
// `require("global")`
|
||||
result = moduleImport("global")
|
||||
or
|
||||
// Closure library - based on AST to avoid recursion with Closure library model
|
||||
result = globalVarRef("goog").getAPropertyRead("global")
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user