tern
tern copied to clipboard
Wrong completions for a closure
trafficstars
Steps to reproduce:
- Open https://codemirror.net/demo/tern.html
- Paste below code
return {
obj: {
prop1: "2",
prop2: "3"
},
func: function() {
function innerFn() {
this.obj.
}
}
}
- Press "Ctrl+space" at "this.obj."

Expected. No completions Actual: Invalid completions are shows