Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee33c59 commit 623557bCopy full SHA for 623557b
1 file changed
javascript/ql/src/semmle/javascript/dataflow/Nodes.qll
@@ -374,7 +374,8 @@ DataFlow::SourceNode globalObjectRef() {
374
// top-level `this`
375
exists(StmtContainer sc |
376
sc = result.(ThisNode).getBindingContainer() and
377
- not sc instanceof Function
+ not sc instanceof Function and
378
+ not sc instanceof Templating::TemplateTopLevel
379
)
380
or
381
// DOM
0 commit comments