From 901d3d095908bb6c136c06c5b30172d240c0f6be Mon Sep 17 00:00:00 2001 From: Ruben Bridgewater Date: Thu, 13 Dec 2018 05:23:16 +0100 Subject: [PATCH] util: inspect ArrayBuffers contents as well Inspecting an ArrayBuffer now also shows their binary contents. PR-URL: https://github.com/nodejs/node/pull/25006 Reviewed-By: Anna Henningsen --- doc/api/util.md | 3 + lib/internal/util/inspect.js | 26 +++++++-- .../test-util-format-shared-arraybuffer.js | 6 -- test/parallel/test-util-format.js | 5 ++ test/parallel/test-util-inspect.js | 55 ++++++++++++------- 5 files changed, 65 insertions(+), 30 deletions(-) delete mode 100644 test/parallel/test-util-format-shared-arraybuffer.js diff --git a/doc/api/util.md b/doc/api/util.md index 7c5a0d2cd5921c..2dd0d0912bccea 100644 --- a/doc/api/util.md +++ b/doc/api/util.md @@ -375,6 +375,9 @@ stream.write('With ES6');