8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 018ec32 commit 4aee98bCopy full SHA for 4aee98b
lib/internal/util/inspector.js
@@ -5,6 +5,7 @@ const {
5
FunctionPrototypeBind,
6
ObjectDefineProperty,
7
ObjectKeys,
8
+ ObjectPrototypeHasOwnProperty,
9
} = primordials;
10
11
let session;
@@ -43,7 +44,7 @@ function wrapConsole(consoleFromNode, consoleFromVM) {
43
44
// If global console has the same method as inspector console,
45
// then wrap these two methods into one. Native wrapper will preserve
46
// the original stack.
- if (consoleFromNode.hasOwnProperty(key)) {
47
+ if (ObjectPrototypeHasOwnProperty(consoleFromNode, key)) {
48
consoleFromNode[key] = FunctionPrototypeBind(
49
consoleCall,
50
consoleFromNode,
0 commit comments