From: Feross Aboukhadijeh Date: Fri, 16 Feb 2018 09:32:28 +0000 (-0800) Subject: remove stray const for Safari 9 support X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=f5aae1035d8e3e78c2264ad9ec9fb13bbc51f08f;p=buffer.git remove stray const for Safari 9 support --- diff --git a/index.js b/index.js index bedaa69..e806fe2 100644 --- 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) }