Tern, issue with new and scoped

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.

This was an issue with clearing global variables on re-analysis. Patch 707c13c62 fixes it.

I am still about to reproduce this issue.
Thanks
M@

I’m definitely not. Update your Tern from git, and make sure your caches are cleared if applicable.

Sorry, hadn’t updated tern. Fixed verified.

Thanks
M@