Fix invalid `hasOwnProperty` function usage.
For example, before in the REPL:
```
> Ar<Tab>
Array
Array ArrayBuffer
```
Now:
```
> Ar<Tab>
Array
ArrayBuffer
```
Fixes #6255.
Closes #6498.
group.sort();
for (var j = 0; j < group.length; j++) {
c = group[j];
- if (!hasOwnProperty(c)) {
+ if (!hasOwnProperty(uniq, c)) {
completions.push(c);
uniq[c] = true;
}
testMe.complete('inner.o', function(error, data) {
assert.deepEqual(data, doesNotBreak);
});
+testMe.complete('console.lo', function(error, data) {
+ assert.deepEqual(data, [['console.log'], 'console.lo']);
+});
// Tab Complete will return globaly scoped variables
putIn.run(['};']);