Merge pull request #983 from asger-semmle/closure-global-ref

JS: add closure library in globalObjectRef
This commit is contained in:
Max Schaefer
2019-02-26 16:55:58 +00:00
committed by GitHub
4 changed files with 12 additions and 0 deletions

View File

@@ -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 |

View File

@@ -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 |

View File

@@ -0,0 +1,4 @@
goog.module('test');
let w = goog.global;
w.foo;