]> zoso.dev Git - buffer.git/commitdiff
Remove dead ._arr code (#350)
authorChristopher Jeffrey (JJ) <chjjeffrey@gmail.com>
Sun, 4 Feb 2024 23:46:28 +0000 (18:46 -0500)
committerGitHub <noreply@github.com>
Sun, 4 Feb 2024 23:46:28 +0000 (10:46 +1100)
index.js

index b0b51298aab48a67de41c84f8cb38ddcaa27e311..1d4b5ea43c78d85b25fc9172fb64262ebab5d0ff 100644 (file)
--- 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)
   }
 }