mirror of https://github.com/status-im/metro.git
fef3c7294d
Summary: @public The current output of console.log is extremely bad. If you pass NaN, it shows up as null (super confusing I know -_-), if you pass a cyclical object, it just says that it is cyclic and that's it. It doesn't print up the first few levels which are NOT cyclical and would be really helpful. It turns out that nodejs console.log pretty printer is really awesome and can be easily extracted as a few hundred lines. This is going to be such a productivity boost that I think it's the right tradeoff to embed it like this Test Plan: ``` var a = {kikoo: {lol: 1}} a.kikoo.nice = a; console.log(a); > { kikoo: { lol: 1, nice: [Circular] } } console.log(NaN) > NaN ``` |
||
---|---|---|
.. | ||
__mocks__ | ||
example_project | ||
src | ||
.babelrc | ||
.npmignore | ||
index.js |