From e1071693d21c192681fd279b8826350aaf567a32 Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Tue, 13 Aug 2019 00:05:56 -0700 Subject: [PATCH] add missing `new` --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 52ec240..97a6f98 100644 --- a/index.js +++ b/index.js @@ -127,7 +127,7 @@ function from (value, encodingOrOffset, length) { } if (value == null) { - throw TypeError( + throw new TypeError( 'The first argument must be one of type string, Buffer, ArrayBuffer, Array, ' + 'or Array-like Object. Received type ' + (typeof value) ) -- 2.34.1