Steps to reproduce:
Enter this script:
function CTor() { this.size = 10; }
CTor.prototype.hallo = “hallo”;
Then enter:
var baz = new CTor().hallo;
baz.
Now press control + space
Now change:
var baz = new CTor().hallo;
to
var baz = new CTor();
Now type baz.
Press control + space.
Notice the code is not completing?
However, if you wrap the code in a function like this:
function CTor() { this.size = 10; }
CTor.prototype.hallo = “hallo”;
function test(){
var baz = new CTor();
}
It works fine.