Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fixup
  • Loading branch information
BridgeAR committed Nov 26, 2019
commit 2f480411a6717253e24fc201fd7d266e6ede2452
4 changes: 2 additions & 2 deletions lib/internal/util/inspect.js
Original file line number Diff line number Diff line change
Expand Up @@ -1578,7 +1578,7 @@ function hasBuiltInToString(value) {
}

// The object has a own `toString` property. Thus it's not not a built-in one.
if (hasOwnProperty(value, 'toString')) {
if (ObjectPrototypeHasOwnProperty(value, 'toString')) {
return false;
}

Expand All @@ -1587,7 +1587,7 @@ function hasBuiltInToString(value) {
let pointer = value;
do {
pointer = ObjectGetPrototypeOf(pointer);
} while (!hasOwnProperty(pointer, 'toString'));
} while (!ObjectPrototypeHasOwnProperty(pointer, 'toString'));

// Check closer if the object is a built-in.
const descriptor = ObjectGetOwnPropertyDescriptor(pointer, 'constructor');
Expand Down