projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
39fec60
)
debugger fix for #1707
author
Fedor Indutny
<fedor.indutny@gmail.com>
Thu, 15 Sep 2011 17:45:32 +0000
(
00:45
+0700)
committer
Ryan Dahl
<ry@tinyclouds.org>
Fri, 23 Sep 2011 20:42:41 +0000
(13:42 -0700)
lib/_debugger.js
patch
|
blob
|
history
diff --git
a/lib/_debugger.js
b/lib/_debugger.js
index
f8b69bf
..
9275fb5
100644
(file)
--- 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);
}