Permalink
Browse files

[debugger] fix for #1707

  • Loading branch information...
1 parent 1a6db7e commit f88f44518eda8f646d86af9c1ea8405fbf9c1343 @indutny committed Sep 15, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/_debugger.js
View
@@ -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 f88f445

Please sign in to comment.