Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
debugger fix for #1707
Browse files Browse the repository at this point in the history
  • Loading branch information
indutny authored and ry committed Sep 23, 2011
1 parent 39fec60 commit 43cb4ec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/_debugger.js
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 43cb4ec

Please sign in to comment.