From 7c99885a9b4c0fc338abf7e7ad1d48823b7f75dd Mon Sep 17 00:00:00 2001 From: Gil Pedersen Date: Tue, 10 Nov 2020 14:12:16 +0100 Subject: [PATCH] stream: fix thrown object reference PR-URL: https://github.com/nodejs/node/pull/36065 Reviewed-By: Robert Nagy Reviewed-By: Matteo Collina Reviewed-By: Antoine du Hamel Reviewed-By: Luigi Pinca Reviewed-By: Rich Trott Reviewed-By: Benjamin Gruenbaum --- lib/internal/streams/pipeline.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/internal/streams/pipeline.js b/lib/internal/streams/pipeline.js index 33d47e52933afb..f9b33ed9bda62a 100644 --- a/lib/internal/streams/pipeline.js +++ b/lib/internal/streams/pipeline.js @@ -262,7 +262,7 @@ function pipeline(...streams) { } else { const name = reading ? `transform[${i - 1}]` : 'destination'; throw new ERR_INVALID_ARG_TYPE( - name, ['Stream', 'Function'], ret); + name, ['Stream', 'Function'], stream); } }