Skip to content

Commit 45d0831

Browse files
committed
allow for printing of process and global
1 parent d929ee1 commit 45d0831

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ module.exports = internals.purdy;
5858

5959
internals.travel = function (object, path) {
6060

61-
var type = global.toString.call(object).split(' ')[1].slice(0, -1);
61+
var type = toString.call(object).split(' ')[1].slice(0, -1);
6262
var format = '';
6363

6464
if (internals[type]) {
@@ -105,7 +105,7 @@ internals.tidyPath = function (path) {
105105
return internals.colorize(path.slice(1, path.size), 'path');
106106
};
107107

108-
internals.Object = function (object, path) {
108+
internals.Object = internals.process = internals.global = function (object, path) {
109109

110110
var keys = Object.keys(object);
111111

0 commit comments

Comments
 (0)