diff options
author | Charmander <~@charmander.me> | 2016-10-25 22:27:14 -0700 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2016-10-28 09:07:55 -0700 |
commit | 66d54467c526eb201c029650f778daac7a64b1fa (patch) | |
tree | 650322608f1b89f8f0c83ceb0cc4c10451d4022a /lib | |
parent | 690bdede1307b4499683c417784e3c84b74bfb45 (diff) | |
download | android-node-v8-66d54467c526eb201c029650f778daac7a64b1fa.tar.gz android-node-v8-66d54467c526eb201c029650f778daac7a64b1fa.tar.bz2 android-node-v8-66d54467c526eb201c029650f778daac7a64b1fa.zip |
buffer: use correct name for custom inspect symbol
59714cb7b3918c9e4fcd94013b778078d3710705 introduced the
`util.inspect.custom` symbol, but it was exported as
`customInspectSymbol` by `internal/util.js` and referenced as
`inspectSymbol` by `buffer.js`.
PR-URL: https://github.com/nodejs/node/pull/9289
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/buffer.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/buffer.js b/lib/buffer.js index 4d11aa835f..9754cfeeb5 100644 --- a/lib/buffer.js +++ b/lib/buffer.js @@ -527,7 +527,7 @@ Buffer.prototype.equals = function equals(b) { // Override how buffers are presented by util.inspect(). -Buffer.prototype[internalUtil.inspectSymbol] = function inspect() { +Buffer.prototype[internalUtil.customInspectSymbol] = function inspect() { var str = ''; var max = exports.INSPECT_MAX_BYTES; if (this.length > 0) { @@ -537,7 +537,7 @@ Buffer.prototype[internalUtil.inspectSymbol] = function inspect() { } return '<' + this.constructor.name + ' ' + str + '>'; }; -Buffer.prototype.inspect = Buffer.prototype[internalUtil.inspectSymbol]; +Buffer.prototype.inspect = Buffer.prototype[internalUtil.customInspectSymbol]; Buffer.prototype.compare = function compare(target, start, |