Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
buffer: fix custom inspection with extra properties
This broke due to a recent change that prevents exposing inspect internals. It now relies on the public API instead and should be a bit more robust due to that. PR-URL: #27074 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
- Loading branch information
Showing
with
31 additions
and 11 deletions.
- +18 −8 lib/buffer.js
- +0 −2 lib/internal/util/inspect.js
- +13 −1 test/parallel/test-buffer-inspect.js
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @@ -1546,8 +1546,6 @@ function formatWithOptions(inspectOptions, ...args) { | ||
|
|
||
| module.exports = { | ||
| inspect, | ||
| format, | ||
| formatWithOptions | ||
| }; | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters