JS: add test with undeclared nested access

This commit is contained in:
Asger F
2019-02-25 12:27:36 +00:00
parent a9f8a53dac
commit 2f6496f6bd
3 changed files with 15 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
import javascript
select Closure::moduleImport("foo.bar.x.y.z")

View File

@@ -0,0 +1,12 @@
goog.module('enumuse');
let fooBar = goog.require('foo.bar');
fooBar.x.y.z;
function infinite() {
let z = fooBar;
while (z) {
z = z.x;
}
}