Skip to content

Commit

Permalink
nel_server: Fix order of completion matches
Browse files Browse the repository at this point in the history
* Ensured completion matches are ordered: own property names followed by
  names in the [prototype] chain.

Fixes n-riesco/ijavascript#45
  • Loading branch information
n-riesco committed Oct 1, 2015
1 parent ae23991 commit 83df062
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/nel_server.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@
while (true) {
var names;
try {
names = Object.getOwnPropertyNames(prototype);
names = Object.getOwnPropertyNames(prototype).sort();
} catch (e) {
break;
}
Expand All @@ -231,7 +231,7 @@
}
}

return propertyList.sort();
return propertyList;
}

function inspect(object) {
Expand Down

0 comments on commit 83df062

Please sign in to comment.