From 43cb4ec76bba6829fd8ba8cfd2a8c7a3c305fdd9 Mon Sep 17 00:00:00 2001 From: Fedor Indutny Date: Fri, 16 Sep 2011 00:45:32 +0700 Subject: [PATCH] debugger fix for #1707 --- lib/_debugger.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/_debugger.js b/lib/_debugger.js index f8b69bf4805..9275fb5ebf0 100644 --- a/lib/_debugger.js +++ b/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); }