|
|
@ -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)); |
|
|
|
} |
|
|
|