diff --git a/lib/internal/console/constructor.js b/lib/internal/console/constructor.js index 7422efc13ab26a..9d8e14281e21a8 100644 --- a/lib/internal/console/constructor.js +++ b/lib/internal/console/constructor.js @@ -466,10 +466,7 @@ const consoleMethods = { values.push(inspect(v)); length++; } - return final([setlike ? iterKey : indexKey, valuesKey], [ - getIndexArray(length), - values, - ]); + return final([iterKey, valuesKey], [getIndexArray(length), values]); } const map = {};