|
@ -768,7 +768,8 @@ function Interface(stdin, stdout, args) { |
|
|
// Copy all prototype methods in repl context
|
|
|
// Copy all prototype methods in repl context
|
|
|
// Setup them as getters if possible
|
|
|
// Setup them as getters if possible
|
|
|
for (var i in proto) { |
|
|
for (var i in proto) { |
|
|
if (proto.hasOwnProperty(i) && ignored.indexOf(i) === -1) { |
|
|
if (Object.prototype.hasOwnProperty.call(proto, i) && |
|
|
|
|
|
ignored.indexOf(i) === -1) { |
|
|
defineProperty(i, i); |
|
|
defineProperty(i, i); |
|
|
if (shortcut[i]) defineProperty(shortcut[i], i); |
|
|
if (shortcut[i]) defineProperty(shortcut[i], i); |
|
|
} |
|
|
} |
|
|