File tree Expand file tree Collapse file tree
javascript/ql/test/library-tests/DOM Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,3 +4,9 @@ test_locationRef
44| customization.js:3:3:3:14 | doc.location |
55test_domValueRef
66| customization.js:4:3:4:28 | doc.get ... 'test') |
7+ | tst.js:45:8:45:7 | this |
8+ | tst.js:46:7:46:12 | this.x |
9+ | tst.js:49:3:49:8 | window |
10+ | tst.js:50:3:50:8 | window |
11+ | tst.js:50:3:50:14 | window.myApp |
12+ | tst.js:50:3:50:18 | window.myApp.foo |
Original file line number Diff line number Diff line change 1+ /** @externs */
2+
3+ /**
4+ * @constructor
5+ * @name EventTarget
6+ */
7+ function EventTarget ( ) { }
8+
9+ /** @type {EventTarget } */
10+ var window ;
Original file line number Diff line number Diff line change 3939 factory2 ( ) ;
4040
4141} ) ( ) ;
42+
43+ ( function pollute ( ) {
44+ class C {
45+ foo ( ) {
46+ this . x ; // Should not be a domValueRef
47+ }
48+ }
49+ window . myApp = new C ( ) ;
50+ window . myApp . foo ( ) ;
51+ } ) ( ) ;
You can’t perform that action at this time.
0 commit comments