diff --git a/lib/internal/console/constructor.js b/lib/internal/console/constructor.js index 7c141ce8987..0b73d384267 100644 --- a/lib/internal/console/constructor.js +++ b/lib/internal/console/constructor.js @@ -468,10 +468,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 = {};