From: Feross Aboukhadijeh Date: Fri, 16 Feb 2018 05:28:31 +0000 (-0800) Subject: make properties 'parent' and 'offset' non-enumerable X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=ff7b0f29758199e370ae1dee67ed238677372a5c;p=buffer.git make properties 'parent' and 'offset' non-enumerable --- diff --git a/index.js b/index.js index 3b4513a..c9ada05 100644 --- a/index.js +++ b/index.js @@ -54,7 +54,6 @@ function typedArraySupport () { } Object.defineProperty(Buffer.prototype, 'parent', { - enumerable: true, get: function () { if (!(this instanceof Buffer)) { return undefined @@ -64,7 +63,6 @@ Object.defineProperty(Buffer.prototype, 'parent', { }) Object.defineProperty(Buffer.prototype, 'offset', { - enumerable: true, get: function () { if (!(this instanceof Buffer)) { return undefined