Skip to content

Commit

Permalink
[debugger] fix for nodejs#1707
Browse files Browse the repository at this point in the history
  • Loading branch information
indutny committed Sep 23, 2011
1 parent 1a6db7e commit f88f445
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/_debugger.js
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,8 @@ function Interface(stdin, stdout, args) {
// Copy all prototype methods in repl context
// Setup them as getters if possible
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);
if (shortcut[i]) defineProperty(shortcut[i], i);
}
Expand Down

0 comments on commit f88f445

Please sign in to comment.