Browse Source

repl completion: comment/TODO cleanup, no functional change

v0.7.4-release
Trent Mick 14 years ago
committed by Ryan Dahl
parent
commit
2134982ea4
  1. 5
      lib/repl.js

5
lib/repl.js

@ -150,7 +150,8 @@ REPLServer.prototype.readline = function (cmd) {
* -> [['sys.print', 'sys.debug', 'sys.log', 'sys.inspect', 'sys.pump'],
* 'sys.' ]
*
* TODO: add warning about exec'ing code... property getters could be run
* Warning: This eval's code like "foo.bar.baz", so it will run property
* getter code.
*/
REPLServer.prototype.complete = function (line) {
@ -231,8 +232,6 @@ REPLServer.prototype.complete = function (line) {
//console.log("completion eval error, expr='"+expr+"': "+e);
}
if (obj != null) {
//TODO: The following, for example, misses "Object.isSealed". Is there
// a way to introspec those? Need to hardcode?
if (typeof obj === "object" || typeof obj === "function") {
memberGroups.push(Object.getOwnPropertyNames(obj));
}

Loading…
Cancel
Save