From: Christopher Jeffrey (JJ) Date: Sun, 4 Feb 2024 23:46:28 +0000 (-0500) Subject: Remove dead ._arr code (#350) X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=c7eee0523e5dac9416452e063c9e7c3122da4058;p=buffer.git Remove dead ._arr code (#350) --- diff --git a/index.js b/index.js index b0b5129..1d4b5ea 100644 --- a/index.js +++ b/index.js @@ -963,7 +963,7 @@ Buffer.prototype.write = function write (string, offset, length, encoding) { Buffer.prototype.toJSON = function toJSON () { return { type: 'Buffer', - data: Array.prototype.slice.call(this._arr || this, 0) + data: Array.prototype.slice.call(this, 0) } }