From: Feross Aboukhadijeh Date: Fri, 16 Feb 2018 08:42:59 +0000 (-0800) Subject: style X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=0c49962fedb94ab5ad1330710239ef804547abfa;p=buffer.git style --- diff --git a/index.js b/index.js index 28347de..121a438 100644 --- a/index.js +++ b/index.js @@ -101,7 +101,7 @@ function Buffer (arg, encodingOrOffset, length) { } // Fix subarray() in ES2016. See: https://github.com/feross/buffer/pull/97 -if (typeof Symbol !== 'undefined' && Symbol.species && +if (typeof Symbol !== 'undefined' && Symbol.species != null && Buffer[Symbol.species] === Buffer) { Object.defineProperty(Buffer, Symbol.species, { value: null,