diff options
author | Ruben Bridgewater <ruben@bridgewater.de> | 2018-12-11 22:42:34 +0100 |
---|---|---|
committer | Ruben Bridgewater <ruben@bridgewater.de> | 2019-02-28 17:49:10 +0100 |
commit | be78266fb39214b7ab3f1d2353d358561dd8f1f8 (patch) | |
tree | 8f7671f0edf9d0ddfc9894a27610d8a045dee2ec /test/parallel/test-whatwg-encoding-custom-textdecoder.js | |
parent | 6c52ef982598fac1cce6ec9cb3831b806295f45c (diff) | |
download | android-node-v8-be78266fb39214b7ab3f1d2353d358561dd8f1f8.tar.gz android-node-v8-be78266fb39214b7ab3f1d2353d358561dd8f1f8.tar.bz2 android-node-v8-be78266fb39214b7ab3f1d2353d358561dd8f1f8.zip |
lib: don't use `util.inspect()` internals
This makes sure the internal `stylize` function is not used to render
anything and instead just uses the regular inspect function in case
of reaching the maximum depth level.
PR-URL: https://github.com/nodejs/node/pull/24971
Refs: https://github.com/nodejs/node/issues/24765
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'test/parallel/test-whatwg-encoding-custom-textdecoder.js')
-rw-r--r-- | test/parallel/test-whatwg-encoding-custom-textdecoder.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-whatwg-encoding-custom-textdecoder.js b/test/parallel/test-whatwg-encoding-custom-textdecoder.js index ceee5b9cbb..63abd2506a 100644 --- a/test/parallel/test-whatwg-encoding-custom-textdecoder.js +++ b/test/parallel/test-whatwg-encoding-custom-textdecoder.js @@ -134,7 +134,7 @@ if (common.hasIntl) { // Test TextDecoder inspect with negative depth { const dec = new TextDecoder(); - assert.strictEqual(util.inspect(dec, { depth: -1 }), '[Object]'); + assert.strictEqual(util.inspect(dec, { depth: -1 }), '[TextDecoder]'); } { |