From 48bde7a628f789164614914e7c975f05966bbfd2 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. --- doc/api/util.md | 3 + lib/internal/util/inspect.js | 25 +++++++-- .../test-util-format-shared-arraybuffer.js | 6 -- test/parallel/test-util-format.js | 5 ++ test/parallel/test-util-inspect.js | 55 ++++++++++++------- 5 files changed, 64 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 396667be13ea5c..7f74876daea99b 100644 --- a/doc/api/util.md +++ b/doc/api/util.md @@ -388,6 +388,9 @@ stream.write('With ES6');