Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

debugger fix for #1707

  • Loading branch information...
indutny authored and ry committed Sep 15, 2011
1 parent 39fec60 commit 43cb4ec76bba6829fd8ba8cfd2a8c7a3c305fdd9
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/_debugger.js
@@ -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);
}

0 comments on commit 43cb4ec

Please sign in to comment.
You can’t perform that action at this time.