brigand opened this issue 9 years ago · 0 comments
new String(), etc. should be handled specially. Current behavior:
new String()
> 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