From 9774b4cc7276b86dd42f8a030076d90a08582cc8 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 5bd655aa1e7a9e..b23f05ca1f206a 100644 --- a/lib/internal/streams/pipeline.js +++ b/lib/internal/streams/pipeline.js @@ -269,7 +269,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); } }