]> zoso.dev Git - buffer.git/commitdiff
remove stray const for Safari 9 support
authorFeross Aboukhadijeh <feross@feross.org>
Fri, 16 Feb 2018 09:32:28 +0000 (01:32 -0800)
committerFeross Aboukhadijeh <feross@feross.org>
Fri, 16 Feb 2018 09:32:28 +0000 (01:32 -0800)
index.js

index bedaa69ae4b5f4a2400bc3ccab2f18a33ee1c14a..e806fe210d4b14a1a98573818fea2dfcdfd1bc6f 100644 (file)
--- a/index.js
+++ b/index.js
@@ -142,7 +142,7 @@ function from (value, encodingOrOffset, length) {
     )
   }
 
-  const valueOf = value.valueOf && value.valueOf()
+  var valueOf = value.valueOf && value.valueOf()
   if (valueOf != null && valueOf !== value) {
     return Buffer.from(valueOf, encodingOrOffset, length)
   }