From: Feross Aboukhadijeh Date: Fri, 16 Feb 2018 05:28:09 +0000 (-0800) Subject: convert to ES5 for IE11 support X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=4b3c806c7ead1e8bccd8c70d4c43d5517d47f47c;p=buffer.git convert to ES5 for IE11 support --- diff --git a/index.js b/index.js index 3ad1093..3b4513a 100644 --- a/index.js +++ b/index.js @@ -55,7 +55,7 @@ function typedArraySupport () { Object.defineProperty(Buffer.prototype, 'parent', { enumerable: true, - get () { + get: function () { if (!(this instanceof Buffer)) { return undefined } @@ -65,7 +65,7 @@ Object.defineProperty(Buffer.prototype, 'parent', { Object.defineProperty(Buffer.prototype, 'offset', { enumerable: true, - get () { + get: function () { if (!(this instanceof Buffer)) { return undefined }