@@ -26,7 +26,6 @@ exports.error = function (x) {
26
26
exports . inspect = function ( obj , showHidden ) {
27
27
var seen = [ ] ;
28
28
function format ( value ) {
29
- var keys , visible_keys , base , type , braces ;
30
29
// Primitive types cannot have properties
31
30
switch ( typeof value ) {
32
31
case 'undefined' : return 'undefined' ;
@@ -40,10 +39,10 @@ exports.inspect = function (obj, showHidden) {
40
39
}
41
40
42
41
// Look up the keys of the object.
43
- keys = showHidden ? Object . getOwnPropertyNames ( value ) . map ( function ( key ) {
42
+ var keys = showHidden ? Object . getOwnPropertyNames ( value ) . map ( function ( key ) {
44
43
return '' + key ;
45
44
} ) : Object . keys ( value ) ;
46
- visible_keys = Object . keys ( value ) ;
45
+ var visible_keys = Object . keys ( value ) ;
47
46
48
47
// Functions without properties can be shortcutted.
49
48
if ( typeof value === 'function' && keys . length === 0 ) {
@@ -54,6 +53,7 @@ exports.inspect = function (obj, showHidden) {
54
53
}
55
54
}
56
55
56
+ var base , type , braces ;
57
57
// Determine the object type
58
58
if ( value instanceof Array ) {
59
59
type = 'Array' ;
@@ -160,4 +160,3 @@ exports.exec = function (command) {
160
160
*/
161
161
exports . inherits = process . inherits ;
162
162
163
- // Object.create(null, {name: {value: "Tim", enumerable: true}})
0 commit comments