From f5aae1035d8e3e78c2264ad9ec9fb13bbc51f08f Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Fri, 16 Feb 2018 01:32:28 -0800 Subject: [PATCH] remove stray const for Safari 9 support --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) } -- 2.34.1