mirror of
https://github.com/github/codeql.git
synced 2026-04-27 09:45:15 +02:00
JS: "this" in a template is not the global object
This commit is contained in:
@@ -374,7 +374,8 @@ DataFlow::SourceNode globalObjectRef() {
|
||||
// top-level `this`
|
||||
exists(StmtContainer sc |
|
||||
sc = result.(ThisNode).getBindingContainer() and
|
||||
not sc instanceof Function
|
||||
not sc instanceof Function and
|
||||
not sc instanceof Templating::TemplateTopLevel
|
||||
)
|
||||
or
|
||||
// DOM
|
||||
|
||||
Reference in New Issue
Block a user