From ff7b0f29758199e370ae1dee67ed238677372a5c Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Thu, 15 Feb 2018 21:28:31 -0800 Subject: [PATCH] make properties 'parent' and 'offset' non-enumerable --- index.js | 2 -- 1 file changed, 2 deletions(-) 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 -- 2.34.1