From aa07dd6248764006d1b201700a18173250b281de 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 add58caa1f46d5..3cb2c20ed0fdef 100644 --- a/doc/api/util.md +++ b/doc/api/util.md @@ -388,6 +388,9 @@ stream.write('With ES6');