Permalink
Please
sign in to comment.
Browse files
console,util: avoid pair array generation in C++
Use a plain `[key, value, key, value]`-style list instead of an array of pairs for inspecting collections. This also fixes a bug with `console.table()` where inspecting a non-key-value `MapIterator` would have led to odd results. PR-URL: #20831 Refs: #20719 (comment) Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Minwoo Jung <minwoo@nodesource.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
- Loading branch information...
Showing
with
67 additions
and 38 deletions.
- +19 −9 lib/console.js
- +20 −8 lib/util.js
- +6 −19 src/node_util.cc
- +20 −0 test/parallel/test-console-table.js
- +2 −2 test/parallel/test-util-inspect.js
0 comments on commit
73cafd8