mirror of https://github.com/lukechilds/node.git
Browse Source
A couple other small fixes: If the keys of an object were all numeric they should be quoted. This way, you can now hypothetically copy and paste the output into your code (if the object doesn't contain any circular objects, deeply nested objects, Dates, RegExps or functions. I think). If a nested object isn't being recursed into, output "[Object]" as opposed to "[object Object]". If an object is longer than the max width but it is one line no matter what, then don't put the closing brace on a new line. Fix some formatting issues to try and match Node's style guidelines.v0.7.4-release
Benjamin Thomas
15 years ago
committed by
Ryan Dahl
2 changed files with 22 additions and 11 deletions
Loading…
Reference in new issue