]> zoso.dev Git - buffer.git/commitdiff
Add `enumerable` and `writable` descriptors.
authorJohn-David Dalton <john.david.dalton@gmail.com>
Mon, 26 Sep 2016 20:51:04 +0000 (13:51 -0700)
committerFeross Aboukhadijeh <feross@feross.org>
Tue, 27 Sep 2016 02:33:39 +0000 (19:33 -0700)
index.js

index 1c28c585396a85a92a5833c2c65fff62a33e2154..75e79249df6a59ac9279a36f91fedbb522307650 100644 (file)
--- a/index.js
+++ b/index.js
@@ -92,7 +92,9 @@ if (typeof Symbol !== 'undefined' && Symbol.species &&
     Buffer[Symbol.species] === Buffer) {
   Object.defineProperty(Buffer, Symbol.species, {
     value: null,
-    configurable: true
+    configurable: true,
+    enumerable: false,
+    writable: false
   })
 }