mirror of
https://github.com/github/codeql.git
synced 2026-04-28 18:25:24 +02:00
Merge pull request #983 from asger-semmle/closure-global-ref
JS: add closure library in globalObjectRef
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
| tst2.js:3:1:3:24 | require ... indow") |
|
||||
| tst2.js:7:1:7:6 | global |
|
||||
| tst2.js:8:1:8:6 | global |
|
||||
| tst3.js:1:1:1:0 | this |
|
||||
| tst3.js:3:9:3:19 | goog.global |
|
||||
| tst.js:1:1:1:0 | this |
|
||||
| tst.js:1:1:1:6 | window |
|
||||
| tst.js:3:1:3:6 | window |
|
||||
|
||||
@@ -3,8 +3,11 @@
|
||||
| document | tst2.js:2:1:2:26 | require ... ument") |
|
||||
| document | tst.js:3:1:3:15 | window.document |
|
||||
| document | tst.js:4:1:4:22 | window. ... ocument |
|
||||
| foo | tst3.js:4:1:4:5 | w.foo |
|
||||
| global | tst2.js:7:1:7:6 | global |
|
||||
| global | tst2.js:8:1:8:6 | global |
|
||||
| goog | tst3.js:1:1:1:4 | goog |
|
||||
| goog | tst3.js:3:9:3:12 | goog |
|
||||
| setTimeout | tst2.js:5:1:5:12 | g.setTimeout |
|
||||
| window | tst2.js:3:1:3:24 | require ... indow") |
|
||||
| window | tst.js:1:1:1:6 | window |
|
||||
|
||||
4
javascript/ql/test/library-tests/Nodes/tst3.js
Normal file
4
javascript/ql/test/library-tests/Nodes/tst3.js
Normal file
@@ -0,0 +1,4 @@
|
||||
goog.module('test');
|
||||
|
||||
let w = goog.global;
|
||||
w.foo;
|
||||
Reference in New Issue
Block a user