From c7eee0523e5dac9416452e063c9e7c3122da4058 Mon Sep 17 00:00:00 2001 From: "Christopher Jeffrey (JJ)" Date: Sun, 4 Feb 2024 18:46:28 -0500 Subject: [PATCH] Remove dead ._arr code (#350) --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) } } -- 2.34.1