]> zoso.dev Git - buffer.git/commitdiff
style
authorFeross Aboukhadijeh <feross@feross.org>
Fri, 16 Feb 2018 08:42:59 +0000 (00:42 -0800)
committerFeross Aboukhadijeh <feross@feross.org>
Fri, 16 Feb 2018 08:42:59 +0000 (00:42 -0800)
index.js

index 28347def8e5b09ff3d82287008060c1b28655693..121a438c75a823c309b67f42d8158395fea24ae2 100644 (file)
--- 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,