inspect-js / object-inspect

string representations of objects in node and the browser
MIT License
142 stars 36 forks source link

Printing of primitive wrapper objects #6

Closed brigand closed 8 years ago

brigand commented 8 years ago

new String(), etc. should be handled specially. Current behavior:

> var oi = require('object-inspect');
undefined
> oi(new Number(5))
'{}'
> oi(new String('hello'))
'{ 0: \'h\', 1: \'e\', 2: \'l\', 3: \'l\', 4: \'o\' }'
> oi(new Boolean(true))
'{}'

cc @ljharb