From 484663b89768cd3b99a255cf9463ff101c82214f Mon Sep 17 00:00:00 2001 From: meixg Date: Tue, 15 Mar 2022 14:27:56 +0800 Subject: [PATCH] buffer: improve Blob constructor error message when passing a string resolve: https://github.com/nodejs/node/issues/38856 --- lib/internal/blob.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/internal/blob.js b/lib/internal/blob.js index 19ba47f1752c59..0f3d429d937190 100644 --- a/lib/internal/blob.js +++ b/lib/internal/blob.js @@ -137,7 +137,7 @@ class Blob { if (sources === null || typeof sources[SymbolIterator] !== 'function' || typeof sources === 'string') { - throw new ERR_INVALID_ARG_TYPE('sources', 'Iterable', sources); + throw new ERR_INVALID_ARG_TYPE('sources', 'a sequence', sources); } validateObject(options, 'options'); let {