Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2f6496f

Browse files
committed
JS: add test with undeclared nested access
1 parent a9f8a53 commit 2f6496f

3 files changed

Lines changed: 15 additions & 0 deletions

File tree

javascript/ql/test/library-tests/Closure/NestedAccess.expected

Whitespace-only changes.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import javascript
2+
3+
select Closure::moduleImport("foo.bar.x.y.z")
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
goog.module('enumuse');
2+
3+
let fooBar = goog.require('foo.bar');
4+
5+
fooBar.x.y.z;
6+
7+
function infinite() {
8+
let z = fooBar;
9+
while (z) {
10+
z = z.x;
11+
}
12+
}

0 commit comments

Comments
 (0)